2014-10-08 15:23:31 +08:00
|
|
|
; RUN: opt < %s -globalopt -S | FileCheck %s
|
|
|
|
|
|
|
|
$c = comdat any
|
|
|
|
; CHECK: $c = comdat any
|
|
|
|
|
2015-01-07 06:55:16 +08:00
|
|
|
define linkonce_odr void @foo() comdat($c) {
|
2014-10-08 15:23:31 +08:00
|
|
|
ret void
|
|
|
|
}
|
2016-06-15 05:01:22 +08:00
|
|
|
; CHECK: define linkonce_odr void @foo() local_unnamed_addr comdat($c)
|
2014-10-08 15:23:31 +08:00
|
|
|
|
2015-01-07 06:55:16 +08:00
|
|
|
define linkonce_odr void @bar() comdat($c) {
|
2014-10-08 15:23:31 +08:00
|
|
|
ret void
|
|
|
|
}
|
2016-06-15 05:01:22 +08:00
|
|
|
; CHECK: define linkonce_odr void @bar() local_unnamed_addr comdat($c)
|
2014-10-08 15:23:31 +08:00
|
|
|
|
|
|
|
define void @zed() {
|
|
|
|
call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|