Fariborz Jahanian | 97a73cd | 2010-05-06 15:45:36 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s |
| 2 | // CHECK: call void @_ZN1SC1ERKS_ |
| 3 | // CHECK: call %class.S* @_ZN1SaSERKS_ |
Fariborz Jahanian | b3ebe94 | 2010-05-10 22:57:35 +0000 | [diff] [blame] | 4 | // CHECK: call %class.S* @_ZN6CGRectaSERKS_ |
Fariborz Jahanian | 97a73cd | 2010-05-06 15:45:36 +0000 | [diff] [blame] | 5 | |
| 6 | class S { |
| 7 | public: |
| 8 | S& operator = (const S&); |
| 9 | S (const S&); |
| 10 | S (); |
| 11 | }; |
| 12 | |
Fariborz Jahanian | b3ebe94 | 2010-05-10 22:57:35 +0000 | [diff] [blame] | 13 | struct CGRect { |
| 14 | CGRect & operator = (const CGRect &); |
| 15 | }; |
| 16 | |
Fariborz Jahanian | 97a73cd | 2010-05-06 15:45:36 +0000 | [diff] [blame] | 17 | @interface I { |
| 18 | S position; |
Fariborz Jahanian | b3ebe94 | 2010-05-10 22:57:35 +0000 | [diff] [blame] | 19 | CGRect bounds; |
Fariborz Jahanian | 97a73cd | 2010-05-06 15:45:36 +0000 | [diff] [blame] | 20 | } |
| 21 | @property(assign, nonatomic) S position; |
Fariborz Jahanian | b3ebe94 | 2010-05-10 22:57:35 +0000 | [diff] [blame] | 22 | @property CGRect bounds; |
| 23 | - (void) initWithOwner; |
Fariborz Jahanian | 97a73cd | 2010-05-06 15:45:36 +0000 | [diff] [blame] | 24 | @end |
| 25 | |
| 26 | @implementation I |
| 27 | @synthesize position; |
Fariborz Jahanian | b3ebe94 | 2010-05-10 22:57:35 +0000 | [diff] [blame] | 28 | @synthesize bounds; |
| 29 | - (void)initWithOwner { |
| 30 | CGRect labelLayerFrame = self.bounds; |
| 31 | labelLayerFrame = self.bounds; |
| 32 | } |
Fariborz Jahanian | 97a73cd | 2010-05-06 15:45:36 +0000 | [diff] [blame] | 33 | @end |
Fariborz Jahanian | bbb5224 | 2010-05-07 18:56:13 +0000 | [diff] [blame] | 34 | |
| 35 | int main() { |
| 36 | I *i; |
| 37 | S s1; |
| 38 | i.position = s1; |
| 39 | return 0; |
| 40 | } |
| 41 | |