From b44423cf75f563aff0704ef4644859104ab875db Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 6 Nov 2012 16:16:02 -0800 Subject: glcpp/tests: Add test for multiline #line Reviewed-by: Kenneth Graunke --- src/glsl/glcpp/tests/105-multiline-hash-line.c | 5 +++++ src/glsl/glcpp/tests/105-multiline-hash-line.c.expected | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 src/glsl/glcpp/tests/105-multiline-hash-line.c create mode 100644 src/glsl/glcpp/tests/105-multiline-hash-line.c.expected (limited to 'src/glsl/glcpp') 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 + -- cgit v1.2.3