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

$c = comdat any
; CHECK: $c = comdat any

define linkonce_odr void @foo() comdat($c) {
  ret void
}
; CHECK: define linkonce_odr void @foo() comdat($c)

define linkonce_odr void @bar() comdat($c) {
  ret void
}
; CHECK: define linkonce_odr void @bar() comdat($c)

define void()* @zed()  {
  ret void()* @foo
}