From d8a2133887576daf7bc87fe05efdf31e7b5dca28 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 31 Mar 2010 13:13:12 -0700 Subject: Add some variable declaration qualifier tests --- tests/qualifier-01.glsl | 3 +++ tests/qualifier-02.glsl | 2 ++ tests/qualifier-03.glsl | 2 ++ tests/qualifier-04.glsl | 3 +++ tests/qualifier-05.glsl | 3 +++ tests/qualifier-06.glsl | 7 +++++++ tests/qualifier-07.glsl | 7 +++++++ 7 files changed, 27 insertions(+) create mode 100644 tests/qualifier-01.glsl create mode 100644 tests/qualifier-02.glsl create mode 100644 tests/qualifier-03.glsl create mode 100644 tests/qualifier-04.glsl create mode 100644 tests/qualifier-05.glsl create mode 100644 tests/qualifier-06.glsl create mode 100644 tests/qualifier-07.glsl (limited to 'tests') 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; +} -- cgit v1.2.3