r200257 - Another test for patch for // rdar://15890251

Fariborz Jahanian fjahanian at apple.com
Mon Jan 27 14:44:17 PST 2014


Author: fjahanian
Date: Mon Jan 27 16:44:17 2014
New Revision: 200257

URL: http://llvm.org/viewvc/llvm-project?rev=200257&view=rev
Log:
Another test for patch for // rdar://15890251


Modified:
    cfe/trunk/test/SemaObjC/unused-backing-ivar-warning.m

Modified: cfe/trunk/test/SemaObjC/unused-backing-ivar-warning.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/unused-backing-ivar-warning.m?rev=200257&r1=200256&r2=200257&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/unused-backing-ivar-warning.m (original)
+++ cfe/trunk/test/SemaObjC/unused-backing-ivar-warning.m Mon Jan 27 16:44:17 2014
@@ -177,6 +177,7 @@ typedef char BOOL;
 @protocol MCCIDURLProtocolDataProvider
 @required
 @property(strong, atomic, readonly) NSURL *cidURL;
+ at property(strong, atomic, readonly) NSURL *cidURL1; // expected-note {{property declared here}}
 @end
 
 @interface UnrelatedClass : NSObject <MCCIDURLProtocolDataProvider>
@@ -184,6 +185,7 @@ typedef char BOOL;
 
 @implementation UnrelatedClass
 @synthesize cidURL = _cidURL;
+ at synthesize cidURL1 = _cidURL1;
 @end
 
 @interface MUIWebAttachmentController : NSObject <MCCIDURLProtocolDataProvider>
@@ -194,4 +196,8 @@ typedef char BOOL;
 - (NSURL *)cidURL {
     return 0;
 }
+ at synthesize cidURL1  = _cidURL1;
+- (NSURL *)cidURL1 { // expected-warning {{ivar '_cidURL1' which backs the property is not referenced in this property's accessor}}
+    return 0;
+}
 @end





More information about the cfe-commits mailing list