diff options
Diffstat (limited to 'test/Parser/statements.c')
-rw-r--r-- | test/Parser/statements.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Parser/statements.c b/test/Parser/statements.c index 3a123d6001bd..8215f4c92a60 100644 --- a/test/Parser/statements.c +++ b/test/Parser/statements.c @@ -62,3 +62,18 @@ void test8() { // Should not skip '}' and produce a "expected '}'" error. undecl // expected-error {{use of undeclared identifier 'undecl'}} } + +int test9() { + int T[] = {1, 2, }; + + int X; + X = 0, // expected-error {{expected ';' after expression}} + { + } + + X = 0, // expected-error {{expected ';' after expression}} + if (0) + ; + + return 4, // expected-error {{expected ';' after return statement}} +} |