1 ; RUN: opt < %s -prune-eh -enable-new-pm=0 -S | FileCheck %s
2 ; RUN: opt < %s -passes='function-attrs,function(simplifycfg)' -S | FileCheck %s
4 declare void @nounwind() nounwind
6 define internal void @foo() {
11 define i32 @caller() personality i32 (...)* @__gxx_personality_v0 {
12 ; CHECK-LABEL: @caller(
14 ; CHECK: call void @foo() [ "foo"(i32 0, i8 1) ]
15 invoke void @foo() [ "foo"(i32 0, i8 1) ]
16 to label %Normal unwind label %Except
22 landingpad { i8*, i32 }
27 declare i32 @__gxx_personality_v0(...)