blob: c019931c07e756a8948c2cc2ab05d90921ce9333 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Do not remove the invoke!
2;
Dan Gohman3c7d3082009-09-11 18:01:28 +00003; RUN: opt < %s -simplifycfg -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner003eae52008-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattner003eae52008-03-10 07:21:50 +000013