reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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() local_unnamed_addr comdat($c)

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

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