summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/087-if-comments.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-17 17:50:05 -0700
committerEric Anholt <[email protected]>2010-08-17 17:51:10 -0700
commitede67e307142000a408e40b637132700a4dc2808 (patch)
treee86f0a79c7988b7e0465708d677421200d64dfee /src/glsl/glcpp/tests/087-if-comments.c
parentedb465e9bb1b45a6db5aca85a002c0f4958deff0 (diff)
glcpp: Add testcase for #if handling bug that breaks Savage2.
Diffstat (limited to 'src/glsl/glcpp/tests/087-if-comments.c')
-rw-r--r--src/glsl/glcpp/tests/087-if-comments.c5
1 files changed, 5 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 00000000000..ce8dc43057f
--- /dev/null
+++ b/src/glsl/glcpp/tests/087-if-comments.c
@@ -0,0 +1,5 @@
+#if (1 == 0) // dangerous comment
+fail
+#else
+win
+#endif