blob: 444ca8ec904b9480d566eaaedf21f169f49ee6c8 [file] [log] [blame]
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00001; RUN: opt < %s -adce -disable-output
Chris Lattner54bda7e2003-09-10 15:33:33 +00002
Tanya Lattnerec9a35a2008-03-01 09:15:35 +00003define void @test() {
4 br i1 false, label %then, label %endif
Chris Lattner54bda7e2003-09-10 15:33:33 +00005
Tanya Lattnerec9a35a2008-03-01 09:15:35 +00006then: ; preds = %0
7 invoke void null( i8* null )
8 to label %invoke_cont unwind label %invoke_catch
Chris Lattner54bda7e2003-09-10 15:33:33 +00009
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000010invoke_catch: ; preds = %then
11 unwind
Chris Lattner54bda7e2003-09-10 15:33:33 +000012
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000013invoke_cont: ; preds = %then
14 ret void
Chris Lattner54bda7e2003-09-10 15:33:33 +000015
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000016endif: ; preds = %0
17 ret void
Chris Lattner54bda7e2003-09-10 15:33:33 +000018}
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000019