[cfe-commits] r123939 - /cfe/trunk/test/SemaObjC/category-1.m

Ted Kremenek kremenek at apple.com
Thu Jan 20 11:45:14 PST 2011


Author: kremenek
Date: Thu Jan 20 13:45:14 2011
New Revision: 123939

URL: http://llvm.org/viewvc/llvm-project?rev=123939&view=rev
Log:
Add test case for <rdar://problem/8891119>.  In
earlier revisions Clang was incorrectly warning
about an incomplete @implementation when a property
was getting synthesized.  This got fixed somewhere
down the line.

Modified:
    cfe/trunk/test/SemaObjC/category-1.m

Modified: cfe/trunk/test/SemaObjC/category-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/category-1.m?rev=123939&r1=123938&r2=123939&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/category-1.m (original)
+++ cfe/trunk/test/SemaObjC/category-1.m Thu Jan 20 13:45:14 2011
@@ -78,3 +78,20 @@
 // <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.
+ at interface RDar8891119 {
+  id _name;
+}
+ at end
+ at interface RDar8891119 ()
+- (id)name;
+ at end
+ at interface RDar8891119 ()
+ at property (copy) id name;
+ at end
+ at implementation RDar8891119
+ at synthesize name = _name;
+ at end
+





More information about the cfe-commits mailing list