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

llvm-svn: 200257
This commit is contained in:
Fariborz Jahanian 2014-01-27 22:44:17 +00:00
parent 2d5d005842
commit c5fa540bcf
1 changed files with 6 additions and 0 deletions

View File

@ -177,6 +177,7 @@ typedef char BOOL;
@protocol MCCIDURLProtocolDataProvider @protocol MCCIDURLProtocolDataProvider
@required @required
@property(strong, atomic, readonly) NSURL *cidURL; @property(strong, atomic, readonly) NSURL *cidURL;
@property(strong, atomic, readonly) NSURL *cidURL1; // expected-note {{property declared here}}
@end @end
@interface UnrelatedClass : NSObject <MCCIDURLProtocolDataProvider> @interface UnrelatedClass : NSObject <MCCIDURLProtocolDataProvider>
@ -184,6 +185,7 @@ typedef char BOOL;
@implementation UnrelatedClass @implementation UnrelatedClass
@synthesize cidURL = _cidURL; @synthesize cidURL = _cidURL;
@synthesize cidURL1 = _cidURL1;
@end @end
@interface MUIWebAttachmentController : NSObject <MCCIDURLProtocolDataProvider> @interface MUIWebAttachmentController : NSObject <MCCIDURLProtocolDataProvider>
@ -194,4 +196,8 @@ typedef char BOOL;
- (NSURL *)cidURL { - (NSURL *)cidURL {
return 0; 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 @end