2009-09-11 20:01:28 +02:00
|
|
|
; RUN: opt < %s -adce -disable-output
|
2003-09-10 17:33:33 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
define void @test() {
|
|
|
|
br i1 false, label %then, label %endif
|
2003-09-10 17:33:33 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
then: ; preds = %0
|
|
|
|
invoke void null( i8* null )
|
|
|
|
to label %invoke_cont unwind label %invoke_catch
|
2003-09-10 17:33:33 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
invoke_catch: ; preds = %then
|
|
|
|
unwind
|
2003-09-10 17:33:33 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
invoke_cont: ; preds = %then
|
|
|
|
ret void
|
2003-09-10 17:33:33 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
endif: ; preds = %0
|
|
|
|
ret void
|
2003-09-10 17:33:33 +02:00
|
|
|
}
|
2008-03-01 10:15:35 +01:00
|
|
|
|