[Piglit] [PATCH] arb_shading_language_420pack: Test that spurious braces are rejected.

Matt Turner mattst88 at gmail.com
Fri Jul 12 11:10:25 PDT 2013


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

diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-spurious-braces.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-spurious-braces.frag
new file mode 100644
index 0000000..8a9e607
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-spurious-braces.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() {
+    // Illegal since b is a 3-element vector, but initializer of unknown type
+    // given.
+    vec3 b = {{ 1.0, 2.0, 3.0 }};
+    gl_FragColor = vec4(1.0);
+}
-- 
1.8.1.5



More information about the Piglit mailing list