2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -inline -disable-output
|
2003-09-23 06:22:41 +08:00
|
|
|
|
2015-06-18 04:52:32 +08:00
|
|
|
define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
|
2003-09-23 06:22:41 +08:00
|
|
|
entry:
|
2008-03-01 17:15:35 +08:00
|
|
|
invoke void @__main( )
|
|
|
|
to label %else unwind label %RethrowExcept
|
2003-09-23 06:22:41 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
else: ; preds = %LJDecisionBB, %entry
|
|
|
|
%i.2 = phi i32 [ 36, %entry ], [ %i.2, %LJDecisionBB ] ; <i32> [#uses=1]
|
|
|
|
br label %LJDecisionBB
|
2003-09-23 06:22:41 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
LJDecisionBB: ; preds = %else
|
|
|
|
br label %else
|
2003-09-23 06:22:41 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
RethrowExcept: ; preds = %entry
|
2015-06-18 04:52:32 +08:00
|
|
|
%exn = landingpad {i8*, i32}
|
2013-03-22 02:30:10 +08:00
|
|
|
cleanup
|
2008-03-01 17:15:35 +08:00
|
|
|
ret i32 0
|
2003-09-23 06:22:41 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @__main() {
|
|
|
|
ret void
|
2003-09-23 06:22:41 +08:00
|
|
|
}
|
|
|
|
|
2013-03-22 02:30:10 +08:00
|
|
|
declare i32 @__gxx_personality_v0(...)
|