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

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


---
 src/glsl/glcpp/tests/106-multiline-hash-if.c       |    6 ++++++
 .../glcpp/tests/106-multiline-hash-if.c.expected   |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 src/glsl/glcpp/tests/106-multiline-hash-if.c
 create mode 100644 src/glsl/glcpp/tests/106-multiline-hash-if.c.expected

diff --git a/src/glsl/glcpp/tests/106-multiline-hash-if.c b/src/glsl/glcpp/tests/106-multiline-hash-if.c
new file mode 100644
index 0000000..929e93e
--- /dev/null
+++ b/src/glsl/glcpp/tests/106-multiline-hash-if.c
@@ -0,0 +1,6 @@
+#define X(x) x
+#if X(		\
+	1	\
+     )
+int foo();
+#endif
diff --git a/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
new file mode 100644
index 0000000..6f5ff2e
--- /dev/null
+++ b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
@@ -0,0 +1,7 @@
+
+
+
+
+int foo();
+
+
-- 
1.7.8.6



More information about the mesa-dev mailing list