1; RUN: llc < %s -march=c
2
3declare i32 @callee(i32, i32)
4
5define i32 @test(i32 %X) {
6; <label>:0
7        %A = invoke i32 @callee( i32 %X, i32 5 )
8                        to label %Ok unwind label %Threw                ; <i32> [#uses=1]
9
10Ok:             ; preds = %Threw, %0
11        %B = phi i32 [ %A, %0 ], [ -1, %Threw ]         ; <i32> [#uses=1]
12        ret i32 %B
13
14Threw:          ; preds = %0
15        br label %Ok
16}
17
18