1 ; Test that we can inline a simple function, turning the calls in it into invoke
4 ; RUN: opt < %s -inline -S | \
5 ; RUN: not grep "call[^e]"
7 declare void @might_throw()
9 define internal void @callee() {
10 call void @might_throw( )
14 ; caller returns true if might_throw throws an exception...
15 define i32 @caller() {
16 invoke void @callee( )
17 to label %cont unwind label %exc
23 %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
28 declare i32 @__gxx_personality_v0(...)