blob: 31f3d42225ab67808652c5b7fd2ca28de6e6f611 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
2
Dan Gohman3c7d3082009-09-11 18:01:28 +00003; RUN: opt < %s -lowerinvoke -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner97928372008-03-19 07:28:33 +00005declare void @baz()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner97928372008-03-19 07:28:33 +00007declare void @bar()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattner97928372008-03-19 07:28:33 +00009define void @foo() {
10then:
11 invoke void @baz( )
12 to label %invoke_cont.0 unwind label %try_catch
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013invoke_cont.0: ; preds = %then
Tanya Lattner97928372008-03-19 07:28:33 +000014 invoke void @bar( )
15 to label %try_exit unwind label %try_catch
16try_catch: ; preds = %invoke_cont.0, %then
17 %__tmp.0 = phi i32* [ null, %invoke_cont.0 ], [ null, %then ] ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019try_exit: ; preds = %invoke_cont.0
20 ret void
21}
Tanya Lattner97928372008-03-19 07:28:33 +000022