llvm-6502/test/Transforms/Inline/unwindto.ll
2008-03-09 05:10:13 +00:00

14 lines
201 B
LLVM

; RUN: llvm-as < %s | opt -inline | llvm-dis | grep "br label %cleanup"
define void @g() {
unwind
}
define i32 @f1() {
entry: unwind_to %cleanup
call void @g()
ret i32 0
cleanup:
ret i32 1
}