From: Matt Turner Date: Wed, 7 Nov 2012 00:24:10 +0000 (-0800) Subject: glcpp/tests: Add test for multiline #if X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28e397660cc7b898be216c0ba16e9b94560406cd;p=mesa.git glcpp/tests: Add test for multiline #if Reviewed-by: Kenneth Graunke --- 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(); + +