2003-12-11 04:18:09 +08:00
|
|
|
; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
|
|
|
|
|
2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -lowerinvoke -disable-output
|
2003-12-11 04:18:09 +08:00
|
|
|
|
2008-03-19 15:28:33 +08:00
|
|
|
declare void @baz()
|
2003-12-11 04:18:09 +08:00
|
|
|
|
2008-03-19 15:28:33 +08:00
|
|
|
declare void @bar()
|
2003-12-11 04:18:09 +08:00
|
|
|
|
2008-03-19 15:28:33 +08:00
|
|
|
define void @foo() {
|
|
|
|
then:
|
|
|
|
invoke void @baz( )
|
|
|
|
to label %invoke_cont.0 unwind label %try_catch
|
2003-12-11 04:18:09 +08:00
|
|
|
invoke_cont.0: ; preds = %then
|
2008-03-19 15:28:33 +08:00
|
|
|
invoke void @bar( )
|
|
|
|
to label %try_exit unwind label %try_catch
|
|
|
|
try_catch: ; preds = %invoke_cont.0, %then
|
|
|
|
%__tmp.0 = phi i32* [ null, %invoke_cont.0 ], [ null, %then ] ; <i32*> [#uses=0]
|
2003-12-11 04:18:09 +08:00
|
|
|
ret void
|
|
|
|
try_exit: ; preds = %invoke_cont.0
|
|
|
|
ret void
|
|
|
|
}
|
2008-03-19 15:28:33 +08:00
|
|
|
|