From 28e397660cc7b898be216c0ba16e9b94560406cd Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 6 Nov 2012 16:24:10 -0800 Subject: [PATCH] glcpp/tests: Add test for multiline #if Reviewed-by: Kenneth Graunke --- src/glsl/glcpp/tests/106-multiline-hash-if.c | 6 ++++++ src/glsl/glcpp/tests/106-multiline-hash-if.c.expected | 7 +++++++ 2 files changed, 13 insertions(+) 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 00000000000..929e93e782f --- /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 00000000000..6f5ff2e3239 --- /dev/null +++ b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected @@ -0,0 +1,7 @@ + + + + +int foo(); + + -- 2.30.2