diff options
-rw-r--r-- | src/glsl/glcpp/tests/098-elif-undefined.c | 3 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/098-elif-undefined.c.expected | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/098-elif-undefined.c b/src/glsl/glcpp/tests/098-elif-undefined.c new file mode 100644 index 00000000000..52a331cc414 --- /dev/null +++ b/src/glsl/glcpp/tests/098-elif-undefined.c @@ -0,0 +1,3 @@ +#if 0 +#elif UNDEFINED_MACRO +#endif diff --git a/src/glsl/glcpp/tests/098-elif-undefined.c.expected b/src/glsl/glcpp/tests/098-elif-undefined.c.expected new file mode 100644 index 00000000000..de967eac438 --- /dev/null +++ b/src/glsl/glcpp/tests/098-elif-undefined.c.expected @@ -0,0 +1,5 @@ +0:2(22): preprocessor error: syntax error, unexpected IDENTIFIER +0:1(7): preprocessor error: Unterminated #if + + + |