diff options
author | Carl Worth <[email protected]> | 2010-08-11 12:43:44 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2010-08-11 12:43:44 -0700 |
commit | 48ba058e7a4b808271ca987b1553efd7e9792da9 (patch) | |
tree | 2c9de7e767584000ae27278b104d40ef4376c52a /src/glsl/glcpp/tests/076-elif-undef-nested.c | |
parent | 298a6fcddef6a91084ae921fca0b8640eb2e2a16 (diff) |
glcpp: Additional fixes for not evaluating skipped #if/#elif expressions.
This adds a couple of test cases to expand our coverage of invalid #if and
being skipped, (either by being nested inside an #if/#elif that evaluates to
zero or by being after an #if/#elif that evaluates to non-zero).
Diffstat (limited to 'src/glsl/glcpp/tests/076-elif-undef-nested.c')
-rw-r--r-- | src/glsl/glcpp/tests/076-elif-undef-nested.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/076-elif-undef-nested.c b/src/glsl/glcpp/tests/076-elif-undef-nested.c new file mode 100644 index 00000000000..ebd550ed005 --- /dev/null +++ b/src/glsl/glcpp/tests/076-elif-undef-nested.c @@ -0,0 +1,5 @@ +#ifdef UNDEF +#if UNDEF == 4 +#elif UNDEF == 5 +#endif +#endif |