32 lines · plain
1; RUN: llc < %s | FileCheck %s2 3declare i32 @__gxx_personality_v0(...) addrspace(0)4declare void @__cxa_call_unexpected(ptr)5declare void @llvm.donothing() readnone6 7; CHECK: f18define void @f1() nounwind uwtable ssp personality ptr @__gxx_personality_v0 {9entry:10; CHECK-NOT: donothing11 invoke void @llvm.donothing()12 to label %invoke.cont unwind label %lpad13 14invoke.cont:15 ret void16 17lpad:18 %0 = landingpad { ptr, i32 }19 filter [0 x ptr] zeroinitializer20 %1 = extractvalue { ptr, i32 } %0, 021 tail call void @__cxa_call_unexpected(ptr %1) noreturn nounwind22 unreachable23}24 25; CHECK: f226define void @f2() nounwind {27entry:28; CHECK-NOT: donothing29 call void @llvm.donothing()30 ret void31}32