summaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/pr21191.ll
blob: 39b8eee9a25370bc5d5ff67175b1a2346e1da6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: opt < %s -globalopt -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()  {
  call void @foo()
  ret void
}