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