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