Add some variable declaration qualifier tests
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 31 Mar 2010 20:13:12 +0000 (13:13 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 31 Mar 2010 20:13:12 +0000 (13:13 -0700)
tests/qualifier-01.glsl [new file with mode: 0644]
tests/qualifier-02.glsl [new file with mode: 0644]
tests/qualifier-03.glsl [new file with mode: 0644]
tests/qualifier-04.glsl [new file with mode: 0644]
tests/qualifier-05.glsl [new file with mode: 0644]
tests/qualifier-06.glsl [new file with mode: 0644]
tests/qualifier-07.glsl [new file with mode: 0644]

diff --git a/tests/qualifier-01.glsl b/tests/qualifier-01.glsl
new file mode 100644 (file)
index 0000000..54ec357
--- /dev/null
@@ -0,0 +1,3 @@
+#version 130
+/* FAIL - inout only allowed in parameter list */
+inout vec4 foo;
diff --git a/tests/qualifier-02.glsl b/tests/qualifier-02.glsl
new file mode 100644 (file)
index 0000000..b635d52
--- /dev/null
@@ -0,0 +1,2 @@
+/* FAIL - in only allowed in parameter list in GLSL 1.10 */
+in foo;
diff --git a/tests/qualifier-03.glsl b/tests/qualifier-03.glsl
new file mode 100644 (file)
index 0000000..7e44803
--- /dev/null
@@ -0,0 +1,2 @@
+/* FAIL - out only allowed in parameter list in GLSL 1.10 */
+out vec4 foo;
diff --git a/tests/qualifier-04.glsl b/tests/qualifier-04.glsl
new file mode 100644 (file)
index 0000000..d03cafc
--- /dev/null
@@ -0,0 +1,3 @@
+#version 130
+/* PASS */
+in vec4 foo;
diff --git a/tests/qualifier-05.glsl b/tests/qualifier-05.glsl
new file mode 100644 (file)
index 0000000..15281f3
--- /dev/null
@@ -0,0 +1,3 @@
+#version 130
+/* PASS */
+out vec4 foo;
diff --git a/tests/qualifier-06.glsl b/tests/qualifier-06.glsl
new file mode 100644 (file)
index 0000000..1907a08
--- /dev/null
@@ -0,0 +1,7 @@
+/* FAIL - in only allowed in parameter list in GLSL 1.10 */
+void main()
+{
+  in vec4 foo;
+
+  gl_Position = gl_Vertex;
+}
diff --git a/tests/qualifier-07.glsl b/tests/qualifier-07.glsl
new file mode 100644 (file)
index 0000000..12568a5
--- /dev/null
@@ -0,0 +1,7 @@
+/* FAIL - out only allowed in parameter list in GLSL 1.10 */
+void main()
+{
+  out vec4 foo;
+
+  gl_Position = gl_Vertex;
+}