blob: 635352004021675d30819039ff5a2a157f0767d7 [file] [log] [blame]
Fariborz Jahanian6c29eda2011-10-26 20:53:59 +00001// RUN: %clang_cc1 -emit-llvm -triple i386-apple-macosx10.7.2 %s -o - | FileCheck %s
2// rdar://10331109
3
4@interface CNumber
5- (double _Complex)sum;
6@end
7
8double _Complex foo(CNumber *x) {
9 return [x sum];
10}
11
John McCall06098582013-02-12 05:53:35 +000012// CHECK: [[R:%.*]] = phi double [ [[R1:%.*]], [[MSGCALL:%.*]] ], [ 0.000000e+00, [[NULLINIT:%.*]] ]
13// CHECK-NEXT: [[I:%.*]] = phi double [ [[I1:%.*]], [[MSGCALL]] ], [ 0.000000e+00, [[NULLINIT]] ]
14// CHECK: store double [[R]]
15// CHECK: store double [[I]]