[Piglit] [PATCH] Add a new GLSL parser test for ? : at global scope.

Kenneth Graunke kenneth at whitecape.org
Wed Oct 24 18:08:50 PDT 2012


---
 tests/glslparsertest/glsl2/condition-08.vert | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 tests/glslparsertest/glsl2/condition-08.vert

diff --git a/tests/glslparsertest/glsl2/condition-08.vert b/tests/glslparsertest/glsl2/condition-08.vert
new file mode 100644
index 0000000..0b819aa
--- /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); }
-- 
1.7.12.3



More information about the Piglit mailing list