1 ; Test that we can inline a simple function, turning the calls in it into invoke
4 ; RUN: opt < %s -inline -S | FileCheck %s
5 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
7 declare void @might_throw()
9 define internal void @callee() {
11 call void @might_throw()
15 ; caller returns true if might_throw throws an exception...
16 define i32 @caller() personality i32 (...)* @__gxx_personality_v0 {
17 ; CHECK-LABEL: define i32 @caller() personality i32 (...)* @__gxx_personality_v0
20 to label %cont unwind label %exc
22 ; CHECK: invoke void @might_throw()
28 %exn = landingpad {i8*, i32}
33 declare i32 @__gxx_personality_v0(...)