2011-10-27 04:53:59 +08:00
|
|
|
// 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];
|
|
|
|
}
|
|
|
|
|
2013-02-12 13:53:35 +08:00
|
|
|
// 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]]
|