diff options
Diffstat (limited to 'test/Parser/bad-control.c')
-rw-r--r-- | test/Parser/bad-control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/bad-control.c b/test/Parser/bad-control.c index 6e59667..0bdd179 100644 --- a/test/Parser/bad-control.c +++ b/test/Parser/bad-control.c @@ -1,9 +1,9 @@ /* RUN: clang-cc -fsyntax-only -verify %s */ -int foo() { +void foo() { break; /* expected-error {{'break' statement not in loop or switch statement}} */ } -int foo2() { +void foo2() { continue; /* expected-error {{'continue' statement not in loop statement}} */ } |