bad-control.c revision f8fd82ba49827db0f6a6ba00c55a7b56b12a19fa
1/* RUN: %clang_cc1 -fsyntax-only -verify %s
2*/
3void foo() {
4  break; /* expected-error {{'break' statement not in loop or switch statement}} */
5}
6
7void foo2() {
8  continue; /* expected-error {{'continue' statement not in loop statement}} */
9}
10