glcpp: Add testcase for #if handling bug that breaks Savage2.
This commit is contained in:
5
src/glsl/glcpp/tests/087-if-comments.c
Normal file
5
src/glsl/glcpp/tests/087-if-comments.c
Normal file
@@ -0,0 +1,5 @@
|
||||
#if (1 == 0) // dangerous comment
|
||||
fail
|
||||
#else
|
||||
win
|
||||
#endif
|
||||
6
src/glsl/glcpp/tests/087-if-comments.c.expected
Normal file
6
src/glsl/glcpp/tests/087-if-comments.c.expected
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
win
|
||||
|
||||
|
||||
Reference in New Issue
Block a user