2003-12-10 20:18:09 +00:00
|
|
|
; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
|
|
|
|
|
2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -lowerinvoke -disable-output
|
2003-12-10 20:18:09 +00:00
|
|
|
|
2008-03-19 07:28:33 +00:00
|
|
|
declare void @baz()
|
2003-12-10 20:18:09 +00:00
|
|
|
|
2008-03-19 07:28:33 +00:00
|
|
|
declare void @bar()
|
2003-12-10 20:18:09 +00:00
|
|
|
|
2008-03-19 07:28:33 +00:00
|
|
|
define void @foo() {
|
|
|
|
then:
|
|
|
|
invoke void @baz( )
|
|
|
|
to label %invoke_cont.0 unwind label %try_catch
|
2003-12-10 20:18:09 +00:00
|
|
|
invoke_cont.0: ; preds = %then
|
2008-03-19 07:28:33 +00: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-10 20:18:09 +00:00
|
|
|
ret void
|
|
|
|
try_exit: ; preds = %invoke_cont.0
|
|
|
|
ret void
|
|
|
|
}
|
2008-03-19 07:28:33 +00:00
|
|
|
|