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