summaryrefslogtreecommitdiffstats
path: root/test/Parser/statements.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/statements.c')
-rw-r--r--test/Parser/statements.c5
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'}}
+}
OpenPOWER on IntegriCloud