Oops, make this test the right thing.
[oota-llvm.git] / test / Transforms / Inline / 2003-10-26-InlineInvokeExceptionDestPhi.ll
1 ; The inliner is breaking inlining invoke instructions where there is a PHI 
2 ; node in the exception destination, and the inlined function contains an 
3 ; unwind instruction.
4
5 ; RUN: llvm-as < %s | opt -inline -disable-output
6
7 implementation
8
9 linkonce void %foo() {
10   unwind
11 }
12
13 int %test() {
14 BB1:
15         invoke void %foo() to label %Cont except label %Cont
16 Cont:
17         %A = phi int [ 0, %BB1], [0, %BB1]
18         ret int %A
19 }