glcpp: Additional fixes for not evaluating skipped #if/#elif expressions.
authorCarl Worth <cworth@cworth.org>
Wed, 11 Aug 2010 19:43:44 +0000 (12:43 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 11 Aug 2010 19:43:44 +0000 (12:43 -0700)
commit48ba058e7a4b808271ca987b1553efd7e9792da9
tree2c9de7e767584000ae27278b104d40ef4376c52a
parent298a6fcddef6a91084ae921fca0b8640eb2e2a16
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).
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/tests/075-elif-elif-undef.c [new file with mode: 0644]
src/glsl/glcpp/tests/075-elif-elif-undef.c.expected [new file with mode: 0644]
src/glsl/glcpp/tests/076-elif-undef-nested.c [new file with mode: 0644]
src/glsl/glcpp/tests/076-elif-undef-nested.c.expected [new file with mode: 0644]