summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-17 17:50:05 -0700
committerEric Anholt <eric@anholt.net>2010-08-17 17:51:10 -0700
commitede67e307142000a408e40b637132700a4dc2808 (patch)
treee86f0a79c7988b7e0465708d677421200d64dfee /src
parentedb465e9bb1b45a6db5aca85a002c0f4958deff0 (diff)
glcpp: Add testcase for #if handling bug that breaks Savage2.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/glcpp/tests/087-if-comments.c5
-rw-r--r--src/glsl/glcpp/tests/087-if-comments.c.expected6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/087-if-comments.c b/src/glsl/glcpp/tests/087-if-comments.c
new file mode 100644
index 0000000000..ce8dc43057
--- /dev/null
+++ b/src/glsl/glcpp/tests/087-if-comments.c
@@ -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
index 0000000000..827e548fe5
--- /dev/null
+++ b/src/glsl/glcpp/tests/087-if-comments.c.expected
@@ -0,0 +1,6 @@
+
+
+
+win
+
+