diff options
Diffstat (limited to 'clang/test/CodeGenObjCXX/property-objects.mm')
-rw-r--r-- | clang/test/CodeGenObjCXX/property-objects.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjCXX/property-objects.mm b/clang/test/CodeGenObjCXX/property-objects.mm index cd327c22ca2..a4cae087d30 100644 --- a/clang/test/CodeGenObjCXX/property-objects.mm +++ b/clang/test/CodeGenObjCXX/property-objects.mm @@ -1,6 +1,7 @@ // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s // CHECK: call void @_ZN1SC1ERKS_ // CHECK: call %class.S* @_ZN1SaSERKS_ +// CHECK: call %class.S* @_ZN6CGRectaSERKS_ class S { public: @@ -9,14 +10,26 @@ public: S (); }; +struct CGRect { + CGRect & operator = (const CGRect &); +}; + @interface I { S position; + CGRect bounds; } @property(assign, nonatomic) S position; +@property CGRect bounds; +- (void) initWithOwner; @end @implementation I @synthesize position; +@synthesize bounds; +- (void)initWithOwner { + CGRect labelLayerFrame = self.bounds; + labelLayerFrame = self.bounds; +} @end int main() { |