diff options
Diffstat (limited to 'clang/test/Parser')
| -rw-r--r-- | clang/test/Parser/missing-end-2.m | 12 | ||||
| -rw-r--r-- | clang/test/Parser/missing-end-3.m | 4 | ||||
| -rw-r--r-- | clang/test/Parser/missing-end.m | 4 | ||||
| -rw-r--r-- | clang/test/Parser/objc-missing-impl.m | 2 | ||||
| -rw-r--r-- | clang/test/Parser/objc-quirks.m | 4 |
5 files changed, 13 insertions, 13 deletions
diff --git a/clang/test/Parser/missing-end-2.m b/clang/test/Parser/missing-end-2.m index 63dc9655836..e89f28eb247 100644 --- a/clang/test/Parser/missing-end-2.m +++ b/clang/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'}} diff --git a/clang/test/Parser/missing-end-3.m b/clang/test/Parser/missing-end-3.m index 3b226376dc5..4875ecdd625 100644 --- a/clang/test/Parser/missing-end-3.m +++ b/clang/test/Parser/missing-end-3.m @@ -1,10 +1,10 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // rdar://8283484 -@interface blah { +@interface blah { // expected-note {{class started here}} @private } // since I forgot the @end here it should say something -@interface blah // expected-error {{missing @end}} +@interface blah // expected-error {{missing '@end'}} @end // and Unknown type name 'end' here diff --git a/clang/test/Parser/missing-end.m b/clang/test/Parser/missing-end.m index fb264610aec..d66ea6487a4 100644 --- a/clang/test/Parser/missing-end.m +++ b/clang/test/Parser/missing-end.m @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -@interface AAA +@interface AAA // expected-note {{class started here}} { } @ x// expected-error{{expected an Objective-C directive after '@'}} -// expected-error{{missing @end}} +// expected-error{{missing '@end'}} diff --git a/clang/test/Parser/objc-missing-impl.m b/clang/test/Parser/objc-missing-impl.m index e9c37ab1b15..791b9f80090 100644 --- a/clang/test/Parser/objc-missing-impl.m +++ b/clang/test/Parser/objc-missing-impl.m @@ -1,2 +1,2 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -@end // expected-error {{@end must appear in an @implementation context}} +@end // expected-error {{'@end' must appear in an Objective-C context}} diff --git a/clang/test/Parser/objc-quirks.m b/clang/test/Parser/objc-quirks.m index 591bca222a9..72cb1e1d7c9 100644 --- a/clang/test/Parser/objc-quirks.m +++ b/clang/test/Parser/objc-quirks.m @@ -5,8 +5,8 @@ int @"s" = 5; // expected-error {{prefix attribute must be}} // rdar://6480479 -@interface A -}; // expected-error {{missing @end}} \ +@interface A // expected-note {{class started here}} +}; // expected-error {{missing '@end'}} \ // expected-error {{expected external declaration}} \ // expected-warning{{extra ';' outside of a function}} |

