glcpp/tests: Add tests for multiline #elif
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
7
src/glsl/glcpp/tests/107-multiline-hash-elif.c
Normal file
7
src/glsl/glcpp/tests/107-multiline-hash-elif.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#define X(x) x
|
||||
#if 0
|
||||
#elif X( \
|
||||
1 \
|
||||
)
|
||||
int foo();
|
||||
#endif
|
8
src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
Normal file
8
src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int foo();
|
||||
|
||||
|
Reference in New Issue
Block a user