Fariborz Jahanian | dfb1eb2 | 2010-03-23 18:08:50 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s |
| 2 | // rdar: // 7351147 |
| 3 | |
| 4 | @interface A |
| 5 | @property __complex int COMPLEX_PROP; |
Fariborz Jahanian | 707ea28 | 2010-03-23 18:43:00 +0000 | [diff] [blame^] | 6 | - (__complex int)y; |
| 7 | - (void) setY : (__complex int)rhs; |
Fariborz Jahanian | dfb1eb2 | 2010-03-23 18:08:50 +0000 | [diff] [blame] | 8 | @end |
| 9 | |
| 10 | void f0(A *a) { |
| 11 | _Complex int a1 = 25 + 10i; |
| 12 | a.COMPLEX_PROP += a1; |
Fariborz Jahanian | 707ea28 | 2010-03-23 18:43:00 +0000 | [diff] [blame^] | 13 | a.y += a1; |
Fariborz Jahanian | dfb1eb2 | 2010-03-23 18:08:50 +0000 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | // CHECK-LP64: internal global [13 x i8] c"COMPLEX_PROP |
| 17 | // CHECK-LP64: internal global [17 x i8] c"setCOMPLEX_PROP |