1 ; Test that any rethrown exceptions in an inlined function are automatically
2 ; turned into branches to the invoke destination.
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep unwind$
6 declare void %might_throw()
10 internal int %callee() {
11 invoke void %might_throw() to label %cont except label %exc
14 exc: ; This just rethrows the exception!
18 ; caller returns true if might_throw throws an exception... which gets
19 ; propagated by callee.
21 %X = invoke int %callee() to label %cont
26 ; This consumes an exception thrown by might_throw