1// 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
12// 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]]
16