aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/unwindto.ll
blob: 28e857d2f9cf0a2c76b509000f7ab178b36804a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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
}