summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-11-06 16:16:02 -0800
committerMatt Turner <[email protected]>2012-11-09 14:33:08 -0800
commitb44423cf75f563aff0704ef4644859104ab875db (patch)
treed0b736e4ad5b0cadfafee3ee04847b5e8924748e /src/glsl/glcpp/tests
parentc3a15d9a35b70aa5b8135605d17db0c307a0eacf (diff)
glcpp/tests: Add test for multiline #line
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests')
-rw-r--r--src/glsl/glcpp/tests/105-multiline-hash-line.c5
-rw-r--r--src/glsl/glcpp/tests/105-multiline-hash-line.c.expected6
2 files changed, 11 insertions, 0 deletions
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
index 00000000000..da156c6a596
--- /dev/null
+++ b/src/glsl/glcpp/tests/105-multiline-hash-line.c
@@ -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
index 00000000000..fb8e1504c7c
--- /dev/null
+++ b/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected
@@ -0,0 +1,6 @@
+
+#line 1
+
+
+#line 2
+