[Piglit] [PATCH 01/23] arb_shading_language_420pack: Test that aggregates can not be used after initialization

Matt Turner mattst88 at gmail.com
Sat Jun 29 19:42:54 PDT 2013


---
 .../compiler/illegal-aggregate-noninitializer-vec.frag   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-noninitializer-vec.frag

diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-noninitializer-vec.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-noninitializer-vec.frag
new file mode 100644
index 0000000..ec03fab
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-noninitializer-vec.frag
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ */
+
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+
+void main() {
+    vec3 b;
+    // Illegal since C-style syntax can only be used as initializers
+    b = { 1.0, 1.0, 1.0 };
+    gl_FragColor = vec4(1.0);
+}
-- 
1.8.1.5



More information about the Piglit mailing list