aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-10-24 12:32:44 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-10-26 22:53:10 -0700
commit1360bf2bae39ddf9e05a3951be5dbcd23035217c (patch)
treed8dfa852d3e545b1d22a1a6ac446fd92d579cb31 /tests/glslparsertest
parent6ac0ff742bca7c405a275407efa92e8a29adbd37 (diff)
Add a new GLSL parser test for ? : at global scope.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'tests/glslparsertest')
-rw-r--r--tests/glslparsertest/glsl2/condition-08.vert8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/glslparsertest/glsl2/condition-08.vert b/tests/glslparsertest/glsl2/condition-08.vert
new file mode 100644
index 00000000..0b819aa2
--- /dev/null
+++ b/tests/glslparsertest/glsl2/condition-08.vert
@@ -0,0 +1,8 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.10
+// [end config]
+
+uniform bool b;
+float v = b ? 1.0 : 0.0;
+void main() { gl_Position = vec4(v); }