glcpp/tests: Add test for multiline #if
authorMatt Turner <mattst88@gmail.com>
Wed, 7 Nov 2012 00:24:10 +0000 (16:24 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 9 Nov 2012 22:33:08 +0000 (14:33 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glcpp/tests/106-multiline-hash-if.c [new file with mode: 0644]
src/glsl/glcpp/tests/106-multiline-hash-if.c.expected [new file with mode: 0644]

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 (file)
index 0000000..929e93e
--- /dev/null
@@ -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 (file)
index 0000000..6f5ff2e
--- /dev/null
@@ -0,0 +1,7 @@
+
+
+
+
+int foo();
+
+