summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/SemaObjC/unused-backing-ivar-warning.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/unused-backing-ivar-warning.m b/clang/test/SemaObjC/unused-backing-ivar-warning.m
index 390d554e143..52067c73d98 100644
--- a/clang/test/SemaObjC/unused-backing-ivar-warning.m
+++ b/clang/test/SemaObjC/unused-backing-ivar-warning.m
@@ -177,6 +177,7 @@ typedef char BOOL;
@protocol MCCIDURLProtocolDataProvider
@required
@property(strong, atomic, readonly) NSURL *cidURL;
+@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;
+@synthesize cidURL1 = _cidURL1;
@end
@interface MUIWebAttachmentController : NSObject <MCCIDURLProtocolDataProvider>
@@ -194,4 +196,8 @@ typedef char BOOL;
- (NSURL *)cidURL {
return 0;
}
+@synthesize cidURL1 = _cidURL1;
+- (NSURL *)cidURL1 { // expected-warning {{ivar '_cidURL1' which backs the property is not referenced in this property's accessor}}
+ return 0;
+}
@end
OpenPOWER on IntegriCloud