llvm-project
14 строк · 453.0 Байт
1// RUN: %clang_cc1 -emit-llvm -triple i386-apple-macosx10.7.2 %s -o - | FileCheck %s
2
3@interface CNumber
4- (double _Complex)sum;
5@end
6
7double _Complex foo(CNumber *x) {
8return [x sum];
9}
10
11// CHECK: [[R:%.*]] = phi double [ [[R1:%.*]], [[MSGCALL:%.*]] ], [ 0.000000e+00, [[NULLINIT:%.*]] ]
12// CHECK-NEXT: [[I:%.*]] = phi double [ [[I1:%.*]], [[MSGCALL]] ], [ 0.000000e+00, [[NULLINIT]] ]
13// CHECK: store double [[R]]
14// CHECK: store double [[I]]
15