diff options
author | Matt Turner <mattst88@gmail.com> | 2012-11-06 16:16:02 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-11-09 14:33:08 -0800 |
commit | b44423cf75f563aff0704ef4644859104ab875db (patch) | |
tree | d0b736e4ad5b0cadfafee3ee04847b5e8924748e | |
parent | c3a15d9a35b70aa5b8135605d17db0c307a0eacf (diff) | |
download | external_mesa3d-b44423cf75f563aff0704ef4644859104ab875db.zip external_mesa3d-b44423cf75f563aff0704ef4644859104ab875db.tar.gz external_mesa3d-b44423cf75f563aff0704ef4644859104ab875db.tar.bz2 |
glcpp/tests: Add test for multiline #line
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-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 0000000..da156c6 --- /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 0000000..fb8e150 --- /dev/null +++ b/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected @@ -0,0 +1,6 @@ + +#line 1 + + +#line 2 + |