blob: 31f3d42225ab67808652c5b7fd2ca28de6e6f611 [file] [log] [blame]
Chris Lattner02f7e712003-12-10 20:18:09 +00001; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
2
Dan Gohman18800922009-09-11 18:01:28 +00003; RUN: opt < %s -lowerinvoke -disable-output
Chris Lattner02f7e712003-12-10 20:18:09 +00004
Tanya Lattnerab7872c2008-03-19 07:28:33 +00005declare void @baz()
Chris Lattner02f7e712003-12-10 20:18:09 +00006
Tanya Lattnerab7872c2008-03-19 07:28:33 +00007declare void @bar()
Chris Lattner02f7e712003-12-10 20:18:09 +00008
Tanya Lattnerab7872c2008-03-19 07:28:33 +00009define void @foo() {
10then:
11 invoke void @baz( )
12 to label %invoke_cont.0 unwind label %try_catch
Chris Lattner02f7e712003-12-10 20:18:09 +000013invoke_cont.0: ; preds = %then
Tanya Lattnerab7872c2008-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]
Chris Lattner02f7e712003-12-10 20:18:09 +000018 ret void
Chris Lattner02f7e712003-12-10 20:18:09 +000019try_exit: ; preds = %invoke_cont.0
20 ret void
21}
Tanya Lattnerab7872c2008-03-19 07:28:33 +000022