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