summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-11-06 16:24:10 -0800
committerMatt Turner <[email protected]>2012-11-09 14:33:08 -0800
commit28e397660cc7b898be216c0ba16e9b94560406cd (patch)
tree0c833ad05d9d3c788a9fae2b104c0b5fc3299214 /src/glsl
parentb44423cf75f563aff0704ef4644859104ab875db (diff)
glcpp/tests: Add test for multiline #if
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glcpp/tests/106-multiline-hash-if.c6
-rw-r--r--src/glsl/glcpp/tests/106-multiline-hash-if.c.expected7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/106-multiline-hash-if.c b/src/glsl/glcpp/tests/106-multiline-hash-if.c
new file mode 100644
index 00000000000..929e93e782f
--- /dev/null
+++ b/src/glsl/glcpp/tests/106-multiline-hash-if.c
@@ -0,0 +1,6 @@
+#define X(x) x
+#if X( \
+ 1 \
+ )
+int foo();
+#endif
diff --git a/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
new file mode 100644
index 00000000000..6f5ff2e3239
--- /dev/null
+++ b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
@@ -0,0 +1,7 @@
+
+
+
+
+int foo();
+
+