glcpp: Add a testcase for the failure in compiling xonotic's shader.
authorEric Anholt <eric@anholt.net>
Sun, 1 Aug 2010 18:40:07 +0000 (11:40 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 1 Aug 2010 18:40:07 +0000 (11:40 -0700)
gcc and mesa master agree that this is OK.

src/glsl/glcpp/tests/073-if-in-ifdef.c [new file with mode: 0644]
src/glsl/glcpp/tests/073-if-in-ifdef.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/073-if-in-ifdef.c b/src/glsl/glcpp/tests/073-if-in-ifdef.c
new file mode 100644 (file)
index 0000000..b9155b5
--- /dev/null
@@ -0,0 +1,4 @@
+#if UNDEF
+#if UNDEF > 1
+#endif
+#endif
diff --git a/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected b/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected
new file mode 100644 (file)
index 0000000..3f2ff2d
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+
+
+