2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -adce -disable-output
|
2003-09-10 23:33:33 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @test() {
|
|
|
|
br i1 false, label %then, label %endif
|
2003-09-10 23:33:33 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
then: ; preds = %0
|
|
|
|
invoke void null( i8* null )
|
|
|
|
to label %invoke_cont unwind label %invoke_catch
|
2003-09-10 23:33:33 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
invoke_catch: ; preds = %then
|
2011-09-01 05:50:07 +08:00
|
|
|
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
|
|
|
cleanup
|
|
|
|
resume { i8*, i32 } %exn
|
2003-09-10 23:33:33 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
invoke_cont: ; preds = %then
|
|
|
|
ret void
|
2003-09-10 23:33:33 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
endif: ; preds = %0
|
|
|
|
ret void
|
2003-09-10 23:33:33 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|
2011-09-01 05:50:07 +08:00
|
|
|
declare i32 @__gxx_personality_v0(...)
|