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 'call void %llvm.unwind'
6 declare void %might_throw()
7 declare void %llvm.unwind()
11 internal int %callee() {
12 invoke void %might_throw() to label %cont except label %exc
15 exc: ; This just rethrows the exception!
16 call void %llvm.unwind()
20 ; caller returns true if might_throw throws an exception... which gets
21 ; propagated by callee.
23 %X = invoke int %callee() to label %cont
28 ; This consumes an exception thrown by might_throw