summaryrefslogtreecommitdiff
path: root/test/Parser/bad-control.c
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2009-10-14 18:03:49 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2009-10-14 18:03:49 +0000
commit4c8b24812ddcd1dedaca343a6d4e76f91f398981 (patch)
tree137ebebcae16fb0ce7ab4af456992bbd8d22fced /test/Parser/bad-control.c
parent5362a71c02e7d448a8ce98cf00c47e353fba5d04 (diff)
Notes
Diffstat (limited to 'test/Parser/bad-control.c')
-rw-r--r--test/Parser/bad-control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/bad-control.c b/test/Parser/bad-control.c
index 6e59667c3549..0bdd179af215 100644
--- a/test/Parser/bad-control.c
+++ b/test/Parser/bad-control.c
@@ -1,9 +1,9 @@
/* RUN: clang-cc -fsyntax-only -verify %s
*/
-int foo() {
+void foo() {
break; /* expected-error {{'break' statement not in loop or switch statement}} */
}
-int foo2() {
+void foo2() {
continue; /* expected-error {{'continue' statement not in loop statement}} */
}