minix/external/bsd/llvm/dist/clang/test/CodeGenObjC/complex-double-abi.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

15 lines
472 B
Objective-C

// RUN: %clang_cc1 -emit-llvm -triple i386-apple-macosx10.7.2 %s -o - | FileCheck %s
// rdar://10331109
@interface CNumber
- (double _Complex)sum;
@end
double _Complex foo(CNumber *x) {
return [x sum];
}
// CHECK: [[R:%.*]] = phi double [ [[R1:%.*]], [[MSGCALL:%.*]] ], [ 0.000000e+00, [[NULLINIT:%.*]] ]
// CHECK-NEXT: [[I:%.*]] = phi double [ [[I1:%.*]], [[MSGCALL]] ], [ 0.000000e+00, [[NULLINIT]] ]
// CHECK: store double [[R]]
// CHECK: store double [[I]]