diff options
Diffstat (limited to 'clang/test/Parser/missing-end.m')
-rw-r--r-- | clang/test/Parser/missing-end.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Parser/missing-end.m b/clang/test/Parser/missing-end.m new file mode 100644 index 0000000..d66ea64 --- /dev/null +++ b/clang/test/Parser/missing-end.m @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +@interface AAA // expected-note {{class started here}} +{ +} +@ x// expected-error{{expected an Objective-C directive after '@'}} +// expected-error{{missing '@end'}} |