blob: 9f56e07bfd62c9af0352df34e2508d5966171648 [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 | llvm-dis | grep invoke
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner003eae52008-03-10 07:21:50 +00005define i32 @test() {
6 invoke i32 @test( )
7 to label %Ret unwind label %Ret ; <i32>:1 [#uses=0]
8Ret: ; preds = %0, %0
9 %A = add i32 0, 1 ; <i32> [#uses=1]
10 ret i32 %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
Tanya Lattner003eae52008-03-10 07:21:50 +000012