Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / ADCE / 2003-09-10-UnwindInstFail.ll
1 ; RUN: opt < %s -adce -disable-output
2
3 define void @test() personality i32 (...)* @__gxx_personality_v0 {
4         br i1 false, label %then, label %endif
5
6 then:           ; preds = %0
7         invoke void null( i8* null )
8                         to label %invoke_cont unwind label %invoke_catch
9
10 invoke_catch:           ; preds = %then
11         %exn = landingpad {i8*, i32}
12                  cleanup
13         resume { i8*, i32 } %exn
14
15 invoke_cont:            ; preds = %then
16         ret void
17
18 endif:          ; preds = %0
19         ret void
20 }
21
22 declare i32 @__gxx_personality_v0(...)