Chris Lattner | 4045a8a | 2007-10-11 00:18:28 +0000 | [diff] [blame] | 1 | /* RUN: clang -fsyntax-only -verify %s |
Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 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 | } |