diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2014-03-05 23:44:00 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-03-05 23:44:00 +0000 |
| commit | 6766f8d23bcb9d17f2694b962fb9ba44cb048232 (patch) | |
| tree | 38b951db642d087172e01eb8553cb7e9db74872d /clang/test/SemaObjC | |
| parent | 21eea24d7924def4cbb62dfa4b9d6035307ee580 (diff) | |
| download | bcm5719-llvm-6766f8d23bcb9d17f2694b962fb9ba44cb048232.tar.gz bcm5719-llvm-6766f8d23bcb9d17f2694b962fb9ba44cb048232.zip | |
Objective-C. Suppress the warning for auto synthesis of property not
synthesizing protocol properties if class's super class
implements them. // rdar://16089191
llvm-svn: 203028
Diffstat (limited to 'clang/test/SemaObjC')
| -rw-r--r-- | clang/test/SemaObjC/default-synthesize-3.m | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/default-synthesize-3.m b/clang/test/SemaObjC/default-synthesize-3.m index e409d216928..94065431691 100644 --- a/clang/test/SemaObjC/default-synthesize-3.m +++ b/clang/test/SemaObjC/default-synthesize-3.m @@ -181,3 +181,35 @@ typedef NSObject<Fooing> FooObject; @implementation Fail // expected-warning {{auto property synthesis will not synthesize property 'muahahaha' declared in protocol 'Fooing'}} expected-warning {{auto property synthesis will not synthesize property 'hoho' declared in protocol 'SubFooling'}} @end +// rdar://16089191 +@class NSURL; + +@interface Root +- (void)setFileURL : (NSURL *) arg; +- (void)setFile : (NSURL *) arg; +- (NSURL *)fileSys; +- (void)setFileSys : (NSURL *) arg; +- (NSURL *)fileKerl; +@end + +@interface SuperClass : Root +- (NSURL *)fileURL; +- (NSURL *)file; +- (NSURL *)fileLog; +- (void)setFileLog : (NSURL *) arg; +- (void)setFileKerl : (NSURL *) arg; +@end + +@protocol r16089191Protocol +@property (readonly) NSURL *fileURL; +@property (copy) NSURL *file; +@property (copy) NSURL *fileSys; +@property (copy) NSURL *fileLog; +@property (copy) NSURL *fileKerl; +@end + +@interface SubClass : SuperClass <r16089191Protocol> +@end + +@implementation SubClass +@end |

