diff options
author | Matt Turner <[email protected]> | 2012-11-06 16:16:02 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-11-09 14:33:08 -0800 |
commit | b44423cf75f563aff0704ef4644859104ab875db (patch) | |
tree | d0b736e4ad5b0cadfafee3ee04847b5e8924748e /src/glsl | |
parent | c3a15d9a35b70aa5b8135605d17db0c307a0eacf (diff) |
glcpp/tests: Add test for multiline #line
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glcpp/tests/105-multiline-hash-line.c | 5 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/105-multiline-hash-line.c.expected | 6 |
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 + |