aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalDCE/pr20981.ll
blob: 0eaa6b89909166a7bb4cab42c386846b8bcd8dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: opt < %s -globaldce -S | FileCheck %s

$c1 = comdat any
; CHECK: $c1 = comdat any

@a1 = linkonce_odr alias void ()* @f1
; CHECK: @a1 = linkonce_odr alias void ()* @f1

define linkonce_odr void @f1() comdat($c1) {
  ret void
}
; CHECK: define linkonce_odr void @f1() comdat($c1)

define void @g() {
  call void @f1()
  ret void
}