Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame^] | 1 | /* RUN: clang -parse-ast-check %s |
2 | */ | ||||
3 | int foo() { | ||||
4 | break; /* expected-error {{'break' statement not in loop or switch statement}} */ | ||||
5 | } | ||||
6 | |||||
7 | int foo2() { | ||||
8 | continue; /* expected-error {{'continue' statement not in loop statement}} */ | ||||
9 | } |