diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-11-02 00:44:43 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-11-02 00:44:43 +0000 |
commit | 46d545e355a4fea2a201652c3c8bbf22a13187a6 (patch) | |
tree | e5e789dc101e9caffd3574e6610cc0705ccd6647 /test/Parser/missing-end-2.m | |
parent | c417fa024495c10a5e678ea36a5f8c715528bdd1 (diff) |
Diagnose a coherant message when @interface
does not terminate with @end.
// rdar: //7824372
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/missing-end-2.m')
-rw-r--r-- | test/Parser/missing-end-2.m | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Parser/missing-end-2.m b/test/Parser/missing-end-2.m new file mode 100644 index 0000000000..63dc965583 --- /dev/null +++ b/test/Parser/missing-end-2.m @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// rdar: //7824372 + +@interface A +-(void) im0; + +@implementation A // expected-error {{missing @end}} +@end + +@interface B { +} + +@implementation B // expected-error {{missing @end}} +@end + +@interface C +@property int P; + +@implementation C // expected-error 2 {{missing @end}} |