From: Ted Kremenek Date: Thu, 20 Jan 2011 19:45:14 +0000 (+0000) Subject: Add test case for . In X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c32bb2affdd08fdec092e4374d0a184713c488d7;p=clang Add test case for . In earlier revisions Clang was incorrectly warning about an incomplete @implementation when a property was getting synthesized. This got fixed somewhere down the line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123939 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjC/category-1.m b/test/SemaObjC/category-1.m index 82a7b03033..4cc5dafaa9 100644 --- a/test/SemaObjC/category-1.m +++ b/test/SemaObjC/category-1.m @@ -78,3 +78,20 @@ // - Handle nameless categories with no name that refer // to an undefined class @interface RDar7680391 () @end // expected-error{{cannot find interface declaration}} + +// - 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 +