diff options
author | Matt Turner <[email protected]> | 2012-11-26 11:53:45 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-11-28 10:27:02 -0800 |
commit | c3a465ae98be6db1aee582f15380944b8faaeafc (patch) | |
tree | 041576120971e4a187c66452138daba1cee986c3 /src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c | |
parent | aed466192a78ff2bb3db877a9599424de708cf90 (diff) |
glcpp: Support #elif(expression) with no intervening space.
And add test cases to ensure that this works
- 110 verifies that glcpp rejects #elif<digits> which glcpp
previously accepted.
- 111 verifies that glcpp accepts #if followed immediately by
(, +, -, !, or ~.
- 112 does the same as 111 but for #elif.
See 17f9beb6 for #if change.
Reviewed-by: Carl Worth <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c')
-rw-r--r-- | src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c b/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c new file mode 100644 index 00000000000..e8221bc49c3 --- /dev/null +++ b/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c @@ -0,0 +1,24 @@ +#if 0 +#elif(1) +success +#endif + +#if 0 +#elif+1 +success +#endif + +#if 0 +#elif-1 +success +#endif + +#if 0 +#elif!1 +success +#endif + +#if 0 +#elif~1 +success +#endif |