diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-17 17:58:11 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-17 17:58:11 +0000 |
| commit | 858885578d6bdf82527c2d895368fc0140536b83 (patch) | |
| tree | 9da5c258c7618a727d52c830166b1cc7b85787b2 /clang/test | |
| parent | cb63bafefcaa06614b42fa8dd58f092fe930f785 (diff) | |
| download | bcm5719-llvm-858885578d6bdf82527c2d895368fc0140536b83.tar.gz bcm5719-llvm-858885578d6bdf82527c2d895368fc0140536b83.zip | |
Objective-C parsing. Error recovery when category implementation
declaration is illegally protocol qualified. // rdar://13920026
llvm-svn: 182136
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Parser/objc-error-qualified-implementation.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Parser/objc-error-qualified-implementation.m b/clang/test/Parser/objc-error-qualified-implementation.m index 444fb5dab44..8bbd5023602 100644 --- a/clang/test/Parser/objc-error-qualified-implementation.m +++ b/clang/test/Parser/objc-error-qualified-implementation.m @@ -19,3 +19,11 @@ @implementation K <P // expected-error {{@implementation declaration can not be protocol qualified}} @end // expected-error {{expected '>'}} + +// rdar://13920026 +@implementation I (Cat) <P> // expected-error {{@implementation declaration can not be protocol qualified}} +- (void) Meth {} +@end + +@implementation I (Cat1) <P // expected-error {{@implementation declaration can not be protocol qualified}} +@end // expected-error {{expected '>'}} |

