26 lines · plain
1; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint2 3; RUN: opt < %s -passes=lower-invoke -disable-output4 5declare void @baz()6 7declare void @bar()8 9define void @foo() personality ptr @__gxx_personality_v0 {10then:11 invoke void @baz( )12 to label %invoke_cont.0 unwind label %try_catch13invoke_cont.0: ; preds = %then14 invoke void @bar( )15 to label %try_exit unwind label %try_catch16try_catch: ; preds = %invoke_cont.0, %then17 %__tmp.0 = phi ptr [ null, %invoke_cont.0 ], [ null, %then ] ; <ptr> [#uses=0]18 %res = landingpad { ptr }19 cleanup20 ret void21try_exit: ; preds = %invoke_cont.022 ret void23}24 25declare i32 @__gxx_personality_v0(...)26