summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/bad-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/bad-control.c')
-rw-r--r--clang/test/Parser/bad-control.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Parser/bad-control.c b/clang/test/Parser/bad-control.c
new file mode 100644
index 00000000000..7a092692307
--- /dev/null
+++ b/clang/test/Parser/bad-control.c
@@ -0,0 +1,9 @@
+/* RUN: clang -parse-noop %s 2>&1 | grep error: | wc -l | grep 2
+*/
+int foo() {
+break;
+}
+
+int foo2() {
+continue;
+}
OpenPOWER on IntegriCloud