mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 08:20:12 +01:00
glcpp: Add testcase for #if handling bug that breaks Savage2.
This commit is contained in:
parent
edb465e9bb
commit
ede67e3071
2 changed files with 11 additions and 0 deletions
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
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue