From 68414bc8682549daa60482d5b9a2142f2796b39d Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 6 Nov 2012 16:24:32 -0800 Subject: glcpp/tests: Add tests for multiline #elif Reviewed-by: Kenneth Graunke --- src/glsl/glcpp/tests/107-multiline-hash-elif.c | 7 +++++++ src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected | 8 ++++++++ 2 files changed, 15 insertions(+) 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 00000000000..8c1c67a4d6b --- /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 00000000000..68d489b072d --- /dev/null +++ b/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected @@ -0,0 +1,8 @@ + + + + + +int foo(); + + -- cgit v1.2.3