1 ; RUN: opt < %s -prune-eh -S | FileCheck %s
2 ; RUN: opt < %s -passes='function-attrs,function(simplify-cfg)' -S | FileCheck %s
4 declare void @nounwind() nounwind
6 define internal void @foo() {
11 ; CHECK-LABEL: define i32 @caller()
12 define i32 @caller() personality i32 (...)* @__gxx_personality_v0 {
13 ; CHECK-NOT: invoke void @foo
15 to label %Normal unwind label %Except
21 landingpad { i8*, i32 }
26 declare i32 @__gxx_personality_v0(...)