summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/128-space-before-hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glcpp/tests/128-space-before-hash.c')
-rw-r--r--src/glsl/glcpp/tests/128-space-before-hash.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/128-space-before-hash.c b/src/glsl/glcpp/tests/128-space-before-hash.c
new file mode 100644
index 00000000000..fba9596baf8
--- /dev/null
+++ b/src/glsl/glcpp/tests/128-space-before-hash.c
@@ -0,0 +1,21 @@
+ /* Any directive can be preceded by a space. */
+ #version 300
+ #pragma Testing spaces before hash
+ #
+ #line 3
+ #define FOO
+ #ifdef FOO
+ yes
+ #endif
+ #if 0
+ #elif defined FOO
+ yes again
+ #endif
+ #if 0
+ #else
+ for the third time, yes!
+ #endif
+ #undef FOO
+ #ifndef FOO
+ yes, of course
+ #endif