[Piglit] [PATCH 06/12] arb_shading_language_420pack: Test that variables cannot be declared with both in and out quals.

Matt Turner mattst88 at gmail.com
Thu Jul 18 13:35:02 PDT 2013


---
 .../compiler/qualifiers/no-in-and-out-qualifiers.vert    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-in-and-out-qualifiers.vert

diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-in-and-out-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-in-and-out-qualifiers.vert
new file mode 100644
index 0000000..1fb3dd3
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-in-and-out-qualifiers.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:
+ *
+ *    "A variable also cannot be declared with both the *in* and the *out*
+ *     qualifiers."
+ *
+ * Test that a variable cannot be declared with both the in and out qualifiers.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+in out float x;
-- 
1.8.1.5



More information about the Piglit mailing list