diff options
author | Matt Turner <[email protected]> | 2012-11-06 16:24:10 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-11-09 14:33:08 -0800 |
commit | 28e397660cc7b898be216c0ba16e9b94560406cd (patch) | |
tree | 0c833ad05d9d3c788a9fae2b104c0b5fc3299214 /src | |
parent | b44423cf75f563aff0704ef4644859104ab875db (diff) |
glcpp/tests: Add test for multiline #if
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/glcpp/tests/106-multiline-hash-if.c | 6 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/106-multiline-hash-if.c.expected | 7 |
2 files changed, 13 insertions, 0 deletions
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(); + + |