diff options
Diffstat (limited to 'test/SemaObjC/category-1.m')
-rw-r--r-- | test/SemaObjC/category-1.m | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/test/SemaObjC/category-1.m b/test/SemaObjC/category-1.m index 18cbb83..4cc5daf 100644 --- a/test/SemaObjC/category-1.m +++ b/test/SemaObjC/category-1.m @@ -62,7 +62,7 @@ // <rdar://problem/7249233> @protocol MultipleCat_P --(void) im0; // expected-warning {{method in protocol not implemented [-Wprotocol]}} +-(void) im0; // expected-note {{method declared here}} @end @interface MultipleCat_I @end // expected-note {{required for direct or indirect protocol 'MultipleCat_P'}} @@ -71,9 +71,27 @@ @interface MultipleCat_I() <MultipleCat_P> @end -@implementation MultipleCat_I // expected-warning {{incomplete implementation}} +@implementation MultipleCat_I // expected-warning {{incomplete implementation}} \ + // expected-warning {{method in protocol not implemented [-Wprotocol]}} @end // <rdar://problem/7680391> - Handle nameless categories with no name that refer // to an undefined class @interface RDar7680391 () @end // expected-error{{cannot find interface declaration}} + +// <rdar://problem/8891119> - Handle @synthesize being used in conjunction +// with explicitly declared accessor. +@interface RDar8891119 { + id _name; +} +@end +@interface RDar8891119 () +- (id)name; +@end +@interface RDar8891119 () +@property (copy) id name; +@end +@implementation RDar8891119 +@synthesize name = _name; +@end + |