[Mesa-dev] [PATCH 4/7] glcpp/tests: Add test for multiline #line

Matt Turner mattst88 at gmail.com
Thu Nov 8 17:26:22 PST 2012


---
 src/glsl/glcpp/tests/105-multiline-hash-line.c     |    5 +++++
 .../glcpp/tests/105-multiline-hash-line.c.expected |    6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
 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

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
+
-- 
1.7.8.6



More information about the mesa-dev mailing list