diff options
author | Carl Worth <[email protected]> | 2010-08-11 14:09:11 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2010-08-11 14:38:04 -0700 |
commit | da6b10a7eb26c8a13056cbae9015d5b84f134142 (patch) | |
tree | 2adc19dd4d0ef9bb901a191a001d077c8d9b4765 /src/glsl/glcpp/tests/083-unterminated-if.c.expected | |
parent | 6b9e7b034ca5d10cd367a2388c5439cdb10a1a68 (diff) |
glcpp: Fix "unterminated if" diagnostic.
This was previously being appended to the output string *after* a copy
of the supposedly final string was made and handed to the caller. So
the diagnostic was never actually visible to the user.
We fix this by moving the check for an unterminated #if from
glcpp_parser_destroy to the calling function, preprocess.
This fixes the test case 083-unterminated-if.c.
Diffstat (limited to 'src/glsl/glcpp/tests/083-unterminated-if.c.expected')
-rw-r--r-- | src/glsl/glcpp/tests/083-unterminated-if.c.expected | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/083-unterminated-if.c.expected b/src/glsl/glcpp/tests/083-unterminated-if.c.expected new file mode 100644 index 00000000000..a69f8bab582 --- /dev/null +++ b/src/glsl/glcpp/tests/083-unterminated-if.c.expected @@ -0,0 +1,5 @@ +0:1(7): preprocessor error: Unterminated #if + + + + |