Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / CodeGen / Generic / 2007-02-25-invoke.ll
1 ; RUN: llc < %s
2
3 ; PR1224
4
5 declare i32 @test()
6 define i32 @test2() personality i32 (...)* @__gxx_personality_v0 {
7         %A = invoke i32 @test() to label %invcont unwind label %blat
8 invcont:
9         ret i32 %A
10 blat:
11   %lpad = landingpad { i8*, i32 }
12             cleanup
13   ret i32 0
14 }
15
16 declare i32 @__gxx_personality_v0(...)