blob: 3e6b20829d7b817352fd8ef3d3214ab6e19dab72 [file] [log] [blame]
Chris Lattner5d6bdae2003-08-05 16:11:36 +00001; Do not remove the invoke!
2;
Dan Gohmanb1e1e822009-09-08 16:50:01 +00003; RUN: opt %s -simplifycfg -disable-output
Chris Lattner5d6bdae2003-08-05 16:11:36 +00004
Tanya Lattnerceca1942008-03-10 07:21:50 +00005define i32 @test() {
6 %A = invoke i32 @test( )
7 to label %Ret unwind label %Ret2 ; <i32> [#uses=1]
8Ret: ; preds = %0
9 ret i32 %A
10Ret2: ; preds = %0
11 ret i32 undef
Chris Lattner5d6bdae2003-08-05 16:11:36 +000012}
Tanya Lattnerceca1942008-03-10 07:21:50 +000013