blob: 74e7428429de484435147f0b18706d5d5407f24b [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Do not remove the invoke!
2;
Tanya Lattner003eae52008-03-10 07:21:50 +00003; RUN: llvm-as < %s | opt -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