glcpp/tests: Add tests for multiline #elif
authorMatt Turner <mattst88@gmail.com>
Wed, 7 Nov 2012 00:24:32 +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/107-multiline-hash-elif.c [new file with mode: 0644]
src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/107-multiline-hash-elif.c b/src/glsl/glcpp/tests/107-multiline-hash-elif.c
new file mode 100644 (file)
index 0000000..8c1c67a
--- /dev/null
@@ -0,0 +1,7 @@
+#define X(x) x
+#if 0
+#elif X(       \
+       1       \
+       )
+int foo();
+#endif
diff --git a/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected b/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
new file mode 100644 (file)
index 0000000..68d489b
--- /dev/null
@@ -0,0 +1,8 @@
+
+
+
+
+
+int foo();
+
+