OSDN Git Service

Add an expected file for 084-unbalanced-parentheses
authorCarl Worth <cworth@cworth.org>
Thu, 14 Apr 2011 21:38:56 +0000 (14:38 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 14 Apr 2011 21:43:11 +0000 (14:43 -0700)
The expected file here captures the current behavior of glcpp (which
is to generate an obscure "syntax error, unexpected $end" diagnostic
for this case).

It would certainly be better for glcpp to generate a nicer diagnostic,
(such as "missing closing parenthesis in function-like macro
definition" or so), but the current behavior is at least correct, and
expected. So we can make the test suite more useful by marking the
current behavior as expected.

src/glsl/glcpp/tests/084-unbalanced-parentheses.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/084-unbalanced-parentheses.c.expected b/src/glsl/glcpp/tests/084-unbalanced-parentheses.c.expected
new file mode 100644 (file)
index 0000000..af49a37
--- /dev/null
@@ -0,0 +1,2 @@
+0:2(8): preprocessor error: syntax error, unexpected $end
+