blob: 480d81be0d571dbc2a766f7691c3cf1b045ed55f [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001/* RUN: %clang_cc1 -fsyntax-only -verify %s
Chris Lattner33ad2ca2006-11-05 23:47:55 +00002*/
Mike Stump753d1202009-07-22 00:43:08 +00003void foo() {
Bill Wendlingeb2def62007-06-27 04:30:12 +00004 break; /* expected-error {{'break' statement not in loop or switch statement}} */
Chris Lattner33ad2ca2006-11-05 23:47:55 +00005}
6
Mike Stump753d1202009-07-22 00:43:08 +00007void foo2() {
Bill Wendlingeb2def62007-06-27 04:30:12 +00008 continue; /* expected-error {{'continue' statement not in loop statement}} */
Chris Lattner33ad2ca2006-11-05 23:47:55 +00009}