summaryrefslogtreecommitdiffstats
path: root/test/Parser/missing-end.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/missing-end.m')
-rw-r--r--test/Parser/missing-end.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Parser/missing-end.m b/test/Parser/missing-end.m
new file mode 100644
index 0000000..fb26461
--- /dev/null
+++ b/test/Parser/missing-end.m
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+@interface AAA
+{
+}
+@ x// expected-error{{expected an Objective-C directive after '@'}}
+// expected-error{{missing @end}}
OpenPOWER on IntegriCloud