1 ; RUN: opt < %s -inline -prune-eh -disable-output 2 define void @f2() { 3 invoke void @f6() 4 to label %ok1 unwind label %lpad1 5 6 ok1: 7 ret void 8 9 lpad1: 10 invoke void @f4() 11 to label %ok2 unwind label %lpad2 12 13 ok2: 14 call void @f8() 15 unreachable 16 17 lpad2: 18 %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 19 cleanup 20 unreachable 21 } 22 23 declare void @f3() 24 25 define void @f4() { 26 call void @f3() 27 ret void 28 } 29 30 declare void @f6() nounwind 31 32 declare void @f8() 33 34 declare i32 @__gxx_personality_v0(...) 35