[Piglit] [PATCH 11/12] arb_shading_language_420pack: Test that duplicate parameter qualifiers is an error.
Matt Turner
mattst88 at gmail.com
Thu Jul 18 13:35:07 PDT 2013
---
.../qualifiers/duplicate-const-parameter-qualifiers.vert | 14 ++++++++++++++
.../qualifiers/duplicate-parameter-qualifiers.vert | 14 ++++++++++++++
2 files changed, 28 insertions(+)
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert
create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert
new file mode 100644
index 0000000..5a1ead6
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert
@@ -0,0 +1,14 @@
+/* [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:
+ *
+ * "The layout qualifier is the only qualifier that can appear more than
+ * once."
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+void a(const const float x) {}
diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert
new file mode 100644
index 0000000..4f6a11a
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert
@@ -0,0 +1,14 @@
+/* [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:
+ *
+ * "The layout qualifier is the only qualifier that can appear more than
+ * once."
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+void a(in in float x) {}
--
1.8.1.5
More information about the Piglit
mailing list