From: Daniel Dunbar Date: Wed, 24 Sep 2008 18:00:13 +0000 (+0000) Subject: Add more testing of Obj-C property synthesis. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=739a36be303bf07de3e2f4e1336b6422e85f59fc;p=clang 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 --- 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; }