aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-24 18:00:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-24 18:00:13 +0000
commit739a36be303bf07de3e2f4e1336b6422e85f59fc (patch)
tree78be03db9508a9b1b8d764d4e0b7365b43745b2c
parentf6a415fe4735debe6398aae241b873e332ada0db (diff)
Add more testing of Obj-C property synthesis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56564 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenObjC/property.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenObjC/property.m b/test/CodeGenObjC/property.m
index 0ec23a4d3e..4598aaa79a 100644
--- a/test/CodeGenObjC/property.m
+++ b/test/CodeGenObjC/property.m
@@ -9,11 +9,17 @@
@interface A : Root {
int x;
+ id ob0, ob1, ob2, ob3, ob4;
}
@property int x;
@property int y;
@property int z;
@property(readonly) int ro;
+@property(assign) id ob0;
+@property(retain) id ob1;
+@property(copy) id ob2;
+@property(retain, nonatomic) id ob3;
+@property(copy, nonatomic) id ob4;
@end
@implementation A
@@ -22,6 +28,11 @@
@synthesize y = x;
@synthesize z = x;
@synthesize ro = x;
+@synthesize ob0;
+@synthesize ob1;
+@synthesize ob2;
+@synthesize ob3;
+@synthesize ob4;
-(int) y {
return x + 1;
}