Fariborz Jahanian | 6c29eda | 2011-10-26 20:53:59 +0000 | [diff] [blame] | 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 | |
| 8 | double _Complex foo(CNumber *x) { |
| 9 | return [x sum]; |
| 10 | } |
| 11 | |
John McCall | 0609858 | 2013-02-12 05:53:35 +0000 | [diff] [blame] | 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]] |