summaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-11-30 11:28:46 -0800
committerVinson Lee <vlee@vmware.com>2010-11-30 11:28:46 -0800
commit2a1f499030a3489381f158af41a15b811d0cf482 (patch)
treebb892347c554d0ab0f7843cadc048e133df71f44 /tests/glslparsertest/glsl2
parentfb4ac876169419cd6b308873e7ea3914eaa12f31 (diff)
glslparsertest: Add test for parenthesis-less 'defined' expressions.
Used in Cinebench R11. Passes on NVIDIA.
Diffstat (limited to 'tests/glslparsertest/glsl2')
-rw-r--r--tests/glslparsertest/glsl2/defined-01.vert11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/glslparsertest/glsl2/defined-01.vert b/tests/glslparsertest/glsl2/defined-01.vert
new file mode 100644
index 000000000..845f42305
--- /dev/null
+++ b/tests/glslparsertest/glsl2/defined-01.vert
@@ -0,0 +1,11 @@
+/* PASS */
+
+#if 1 == 0 || defined UNDEFINED
+#else
+#endif
+
+void main()
+{
+ gl_Position = gl_Vertex;
+}
+