diff options
author | dim <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | 952eddef9aff85b1e92626e89baaf7a360e2ac85 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Rewriter/objc-modern-property-attributes.mm | |
parent | ea266cad53e3d49771fa38103913d3ec7a166694 (diff) | |
download | FreeBSD-src-952eddef9aff85b1e92626e89baaf7a360e2ac85.zip FreeBSD-src-952eddef9aff85b1e92626e89baaf7a360e2ac85.tar.gz |
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841
Diffstat (limited to 'test/Rewriter/objc-modern-property-attributes.mm')
-rw-r--r-- | test/Rewriter/objc-modern-property-attributes.mm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Rewriter/objc-modern-property-attributes.mm b/test/Rewriter/objc-modern-property-attributes.mm index abebb2c..f0d002c 100644 --- a/test/Rewriter/objc-modern-property-attributes.mm +++ b/test/Rewriter/objc-modern-property-attributes.mm @@ -16,6 +16,10 @@ typedef void (^void_block_t)(void); @property (copy) void_block_t completionBlock; @property (retain) PropertyClass* Yblock; +@property (readonly) PropertyClass* readonlyAttr; +@property (readonly,copy) PropertyClass* readonlyCopyAttr; +@property (readonly,retain) PropertyClass* readonlyRetainAttr; +@property (readonly,retain,nonatomic) PropertyClass* readonlyNonatomicAttr; @property (copy) id ID; @end @@ -25,6 +29,10 @@ typedef void (^void_block_t)(void); @dynamic r; // attributes should be "Ti,D" @synthesize completionBlock=__completion; // "T@?,C,V__completion" @synthesize Yblock = YVAR; // "T@\"PropertyClass\",&,VYVAR" +@synthesize readonlyAttr; +@synthesize readonlyCopyAttr; +@synthesize readonlyRetainAttr; +@synthesize readonlyNonatomicAttr; @synthesize ID; // "T@,C,VID" @end @@ -32,6 +40,10 @@ typedef void (^void_block_t)(void); // CHECK: Ti,D // CHECK: T@?,C,V__completion // CHECK: T@\"PropertyClass\",&,VYVAR +// CHECK: T@\"PropertyClass\",R,VreadonlyAttr +// CHECK: T@\"PropertyClass\",R,C,VreadonlyCopyAttr +// CHECK: T@\"PropertyClass\",R,&,VreadonlyRetainAttr +// CHECK: T@\"PropertyClass\",R,&,N,VreadonlyNonatomicAttr @interface Test @end @interface Test (Category) |