Debian Codegraph @

clang/test/CodeGenObjC/complex-property.m

raw
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-LP64 %s
2
3 @interface A
4 @property __complex int COMPLEX_PROP;
5 - (__complex int)y;
6 - (void) setY : (__complex int)rhs;
7 @end
8
9 void f0(A *a) {
10 _Complex int a1 = 25 + 10i;
11 a.COMPLEX_PROP += a1;
12 a.y += a1;
13 }
14
15 // CHECK-LP64: private unnamed_addr constant [13 x i8] c"COMPLEX_PROP
16 // CHECK-LP64: private unnamed_addr constant [17 x i8] c"setCOMPLEX_PROP
17
18 @interface B
19 @property (assign) _Complex float f_complex_ivar;
20 @end
21
22 @implementation B
23
24 @synthesize f_complex_ivar = _f_complex_ivar;
25 -(void) unary_f_complex: (_Complex float) a0 {
26 self.f_complex_ivar = a0;
27 }
28
29 @end
30