]> granicus.if.org Git - clang/commitdiff
Add test case for <rdar://problem/8891119>. In
authorTed Kremenek <kremenek@apple.com>
Thu, 20 Jan 2011 19:45:14 +0000 (19:45 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 Jan 2011 19:45:14 +0000 (19:45 +0000)
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

test/SemaObjC/category-1.m

index 82a7b030334d4f131d09773279037e3e4d7db146..4cc5dafaa91b4c7d06b2a2ea8e18a063c90da72f 100644 (file)
 // <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
+