aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline/unwindto.ll
blob: 1213497b5bf8eaa675d7d1d5104105abf6b84f77 (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: unwinds to %cleanup
  call void @g()
  ret i32 0
cleanup:
  ret i32 1
}