diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2012-10-24 12:32:44 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2012-10-26 22:53:10 -0700 |
commit | 1360bf2bae39ddf9e05a3951be5dbcd23035217c (patch) | |
tree | d8dfa852d3e545b1d22a1a6ac446fd92d579cb31 /tests | |
parent | 6ac0ff742bca7c405a275407efa92e8a29adbd37 (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')
-rw-r--r-- | tests/glslparsertest/glsl2/condition-08.vert | 8 |
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); } |