summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/noreturn-call.ll
blob: b45477828374ee022bfb55c6e182114a80f0b384 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: opt < %s -simplifycfg -S | grep unreachable
; PR1796

declare void @Finisher(i32) noreturn

define void @YYY(i32) {
  tail call void @Finisher(i32 %0) noreturn
  tail call void @Finisher(i32 %0) noreturn
  ret void
}