glcpp/tests: Add test for multiline #line
authorMatt Turner <mattst88@gmail.com>
Wed, 7 Nov 2012 00:16:02 +0000 (16:16 -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/105-multiline-hash-line.c [new file with mode: 0644]
src/glsl/glcpp/tests/105-multiline-hash-line.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/105-multiline-hash-line.c b/src/glsl/glcpp/tests/105-multiline-hash-line.c
new file mode 100644 (file)
index 0000000..da156c6
--- /dev/null
@@ -0,0 +1,5 @@
+#define X(x) x
+#line X(       \
+       1       \
+       )
+#line 2
diff --git a/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected b/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected
new file mode 100644 (file)
index 0000000..fb8e150
--- /dev/null
@@ -0,0 +1,6 @@
+
+#line 1
+
+
+#line 2
+