[Mesa-dev] [PATCH 6/7] glcpp/tests: Add tests for multiline #elif

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


---
 src/glsl/glcpp/tests/107-multiline-hash-elif.c     |    7 +++++++
 .../glcpp/tests/107-multiline-hash-elif.c.expected |    8 ++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 src/glsl/glcpp/tests/107-multiline-hash-elif.c
 create mode 100644 src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected

diff --git a/src/glsl/glcpp/tests/107-multiline-hash-elif.c b/src/glsl/glcpp/tests/107-multiline-hash-elif.c
new file mode 100644
index 0000000..8c1c67a
--- /dev/null
+++ b/src/glsl/glcpp/tests/107-multiline-hash-elif.c
@@ -0,0 +1,7 @@
+#define X(x) x
+#if 0
+#elif X(	\
+	1	\
+       )
+int foo();
+#endif
diff --git a/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected b/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
new file mode 100644
index 0000000..68d489b
--- /dev/null
+++ b/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
@@ -0,0 +1,8 @@
+
+
+
+
+
+int foo();
+
+
-- 
1.7.8.6



More information about the mesa-dev mailing list