diff options
Diffstat (limited to 'test/Parser/statements.c')
-rw-r--r-- | test/Parser/statements.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/statements.c b/test/Parser/statements.c index a662c9b..bc7192a 100644 --- a/test/Parser/statements.c +++ b/test/Parser/statements.c @@ -57,3 +57,8 @@ void test6(void) { int test7() { return 4 // expected-error {{expected ';' after return statement}} } + +void test8() { + // Should not skip '}' and produce a "expected '}'" error. + undecl // expected-error {{use of undeclared identifier 'undecl'}} +} |