[Piglit] [PATCH 03/12] arb_shading_language_420pack: Test that storage qual after type is an error.

Matt Turner mattst88 at gmail.com
Thu Jul 18 13:34:59 PDT 2013


---
 .../qualifiers/storage-qualifier-after-type.vert         | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert

diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert
new file mode 100644
index 0000000..ba449e1
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/storage-qualifier-after-type.vert
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ * "Variable declarations may have at most one storage qualifier specified in
+ *  front of the type."
+ *
+ * Test that a storage qualifier after the type results in a compile error.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+float in x;
-- 
1.8.1.5



More information about the Piglit mailing list