summaryrefslogtreecommitdiffstats
path: root/test/Parser/missing-end-2.m
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2011-12-06 09:25:23 +0000
committerErik Verbruggen <erikjv@me.com>2011-12-06 09:25:23 +0000
commitd64251fd56577dd5c78903454632361e094c6dc1 (patch)
tree998c7c959649aae3022c18f33c834f6c345b45c8 /test/Parser/missing-end-2.m
parent26b45d86085a125af036dbcf85dad3087b664ab2 (diff)
Extend warnings for missing '@end'.
Fixes PR2709. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/missing-end-2.m')
-rw-r--r--test/Parser/missing-end-2.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Parser/missing-end-2.m b/test/Parser/missing-end-2.m
index 63dc965583..e89f28eb24 100644
--- a/test/Parser/missing-end-2.m
+++ b/test/Parser/missing-end-2.m
@@ -1,19 +1,19 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// rdar: //7824372
-@interface A
+@interface A // expected-note {{class started here}}
-(void) im0;
-@implementation A // expected-error {{missing @end}}
+@implementation A // expected-error {{missing '@end'}}
@end
-@interface B {
+@interface B { // expected-note {{class started here}}
}
-@implementation B // expected-error {{missing @end}}
+@implementation B // expected-error {{missing '@end'}}
@end
-@interface C
+@interface C // expected-note 2 {{class started here}}
@property int P;
-@implementation C // expected-error 2 {{missing @end}}
+@implementation C // expected-error 2 {{missing '@end'}}