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_ |
| 4 | |
| 5 | class S { |
| 6 | public: |
| 7 | S& operator = (const S&); |
| 8 | S (const S&); |
| 9 | S (); |
| 10 | }; |
| 11 | |
| 12 | @interface I { |
| 13 | S position; |
| 14 | } |
| 15 | @property(assign, nonatomic) S position; |
| 16 | @end |
| 17 | |
| 18 | @implementation I |
| 19 | @synthesize position; |
| 20 | @end |
Fariborz Jahanian | bbb5224 | 2010-05-07 18:56:13 +0000 | [diff] [blame^] | 21 | |
| 22 | int main() { |
| 23 | I *i; |
| 24 | S s1; |
| 25 | i.position = s1; |
| 26 | return 0; |
| 27 | } |
| 28 | |