From 1360bf2bae39ddf9e05a3951be5dbcd23035217c Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 24 Oct 2012 12:32:44 -0700 Subject: Add a new GLSL parser test for ? : at global scope. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- tests/glslparsertest/glsl2/condition-08.vert | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/glslparsertest/glsl2/condition-08.vert (limited to 'tests') 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); } -- cgit v1.2.3