Fariborz Jahanian | 2a71107 | 2010-06-15 23:49:10 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s |
| 2 | |
| 3 | struct POD { |
| 4 | int array[3][4]; |
| 5 | id objc_obj; |
| 6 | }; |
| 7 | |
| 8 | struct D { |
| 9 | POD pod_array[2][3]; |
| 10 | }; |
| 11 | |
| 12 | @interface I |
| 13 | { |
| 14 | D Property1; |
| 15 | } |
| 16 | @property D Property1; |
| 17 | - (D) val; |
| 18 | - (void) set : (D) d1; |
| 19 | @end |
| 20 | |
| 21 | @implementation I |
| 22 | @synthesize Property1; |
| 23 | - (D) val { return Property1; } |
| 24 | - (void) set : (D) d1 { Property1 = d1; } |
| 25 | @end |
| 26 | // CHECK: {{call.*@objc_memmove_collectable}} |
| 27 | // CHECK: {{call.*@objc_memmove_collectable}} |
| 28 | |