1 ; Test that any rethrown exceptions in an inlined function are automatically
2 ; turned into branches to the invoke destination.
4 ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep unwind$
6 declare void @might_throw()
8 define internal i32 @callee() {
9 invoke void @might_throw( )
10 to label %cont unwind label %exc
16 ; This just rethrows the exception!
20 ; caller returns true if might_throw throws an exception... which gets
21 ; propagated by callee.
22 define i32 @caller() {
23 %X = invoke i32 @callee( )
24 to label %cont unwind label %Handler ; <i32> [#uses=1]
30 ; This consumes an exception thrown by might_throw