llvm-capstone/clang/test/Parser/bad-control.c
Chris Lattner 5e4c75f4ef rename -parse-ast-print to -ast-print
rename -parse-ast-dump to -ast-dump
remove -parse-ast, which is redundant with -fsyntax-only

llvm-svn: 42852
2007-10-11 00:18:28 +00:00

10 lines
238 B
C

/* RUN: clang -fsyntax-only -verify %s
*/
int foo() {
break; /* expected-error {{'break' statement not in loop or switch statement}} */
}
int foo2() {
continue; /* expected-error {{'continue' statement not in loop statement}} */
}