glcpp: Add testcase for #if handling bug that breaks Savage2.
authorEric Anholt <eric@anholt.net>
Wed, 18 Aug 2010 00:50:05 +0000 (17:50 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 Aug 2010 00:51:10 +0000 (17:51 -0700)
src/glsl/glcpp/tests/087-if-comments.c [new file with mode: 0644]
src/glsl/glcpp/tests/087-if-comments.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/087-if-comments.c b/src/glsl/glcpp/tests/087-if-comments.c
new file mode 100644 (file)
index 0000000..ce8dc43
--- /dev/null
@@ -0,0 +1,5 @@
+#if (1 == 0) // dangerous comment
+fail
+#else
+win
+#endif
diff --git a/src/glsl/glcpp/tests/087-if-comments.c.expected b/src/glsl/glcpp/tests/087-if-comments.c.expected
new file mode 100644 (file)
index 0000000..827e548
--- /dev/null
@@ -0,0 +1,6 @@
+
+
+
+win
+
+