diff options
author | Carl Worth <[email protected]> | 2012-12-05 13:36:31 -0800 |
---|---|---|
committer | Carl Worth <[email protected]> | 2013-01-11 13:55:41 -0800 |
commit | cc5fc8bf2f6a8b6390e4d9088060938fe23831e1 (patch) | |
tree | 096afbb116e53ef65fb64e6dfcdf7cb63fd3018b /src/glsl/glcpp/tests/116-disable-line-continuations.c | |
parent | 2483039aca78078f21a57e8e950a0bc0181fbd3d (diff) |
glcpp: Add tests for line continuation
First we test that line continuations are honored within a comment, (as
recently changed in glcpp), then we test that line continuations can be
disabled via an option within the context. This is tested via the new support
for a test-specific command-line option passed to glcpp.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests/116-disable-line-continuations.c')
-rw-r--r-- | src/glsl/glcpp/tests/116-disable-line-continuations.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/116-disable-line-continuations.c b/src/glsl/glcpp/tests/116-disable-line-continuations.c new file mode 100644 index 00000000000..83d5ddf681b --- /dev/null +++ b/src/glsl/glcpp/tests/116-disable-line-continuations.c @@ -0,0 +1,13 @@ +// glcpp-args: --disable-line-continuations + +// This comments ends with a backslash \\ +#define NO_CONTINUATION + +#ifdef NO_CONTINUATION +success +#else +failure +#endif + + + |