summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-31 13:13:12 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-31 13:13:12 -0700
commitd8a2133887576daf7bc87fe05efdf31e7b5dca28 (patch)
tree71d7621dbdc18c258e56adc21ec2f554258b771e /tests
parentd8065d86e8416c207b9a574ee45bf89b7d7b8eb2 (diff)
Add some variable declaration qualifier tests
Diffstat (limited to 'tests')
-rw-r--r--tests/qualifier-01.glsl3
-rw-r--r--tests/qualifier-02.glsl2
-rw-r--r--tests/qualifier-03.glsl2
-rw-r--r--tests/qualifier-04.glsl3
-rw-r--r--tests/qualifier-05.glsl3
-rw-r--r--tests/qualifier-06.glsl7
-rw-r--r--tests/qualifier-07.glsl7
7 files changed, 27 insertions, 0 deletions
diff --git a/tests/qualifier-01.glsl b/tests/qualifier-01.glsl
new file mode 100644
index 0000000000..54ec3572a2
--- /dev/null
+++ b/tests/qualifier-01.glsl
@@ -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
index 0000000000..b635d52aa2
--- /dev/null
+++ b/tests/qualifier-02.glsl
@@ -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
index 0000000000..7e448034a7
--- /dev/null
+++ b/tests/qualifier-03.glsl
@@ -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
index 0000000000..d03cafc1db
--- /dev/null
+++ b/tests/qualifier-04.glsl
@@ -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
index 0000000000..15281f3384
--- /dev/null
+++ b/tests/qualifier-05.glsl
@@ -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
index 0000000000..1907a087c8
--- /dev/null
+++ b/tests/qualifier-06.glsl
@@ -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
index 0000000000..12568a57db
--- /dev/null
+++ b/tests/qualifier-07.glsl
@@ -0,0 +1,7 @@
+/* FAIL - out only allowed in parameter list in GLSL 1.10 */
+void main()
+{
+ out vec4 foo;
+
+ gl_Position = gl_Vertex;
+}