diff options
| author | Douglas Gregor <dgregor@apple.com> | 2015-12-18 00:52:31 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2015-12-18 00:52:31 +0000 |
| commit | 0253543c92f63e67d212de07a61561b46e7b8c97 (patch) | |
| tree | 446bd94db5f95f69e887ec972ca59470b70b26b0 /clang/test/SemaObjC | |
| parent | 545304d323d6bbebdddcd93a7b657e761b8df168 (diff) | |
| download | bcm5719-llvm-0253543c92f63e67d212de07a61561b46e7b8c97.tar.gz bcm5719-llvm-0253543c92f63e67d212de07a61561b46e7b8c97.zip | |
ObjC properties: consider ownership of properties from protocols when synthesizing.
When determining whether ownership was explicitly written for a
property when it is being synthesized, also consider that the original
property might have come from a protocol. Fixes rdar://problem/23931441.
llvm-svn: 255943
Diffstat (limited to 'clang/test/SemaObjC')
| -rw-r--r-- | clang/test/SemaObjC/arc-property-decl-attrs.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/arc-property-decl-attrs.m b/clang/test/SemaObjC/arc-property-decl-attrs.m index 408b2709203..6c96ba481c4 100644 --- a/clang/test/SemaObjC/arc-property-decl-attrs.m +++ b/clang/test/SemaObjC/arc-property-decl-attrs.m @@ -105,3 +105,19 @@ @property(nonatomic, weak, nonnull, readonly) id ROdelegate; // expected-error {{property attributes 'nonnull' and 'weak' are mutually exclusive}} @end +// rdar://problem/23931441 +@protocol P +@property(readonly, retain) id prop; +@end + +__attribute__((objc_root_class)) +@interface I2<P> +@end + +@interface I2() +@property (readwrite) id prop; +@end + +@implementation I2 +@synthesize prop; +@end |

