2014-12-08 18:22:06 +01:00
|
|
|
; RUN: llvm-link %s -S -o - | FileCheck %s
|
|
|
|
|
|
|
|
$c = comdat any
|
2015-09-11 05:22:04 +02:00
|
|
|
@a = alias void (), void ()* @f
|
2015-01-06 23:55:16 +01:00
|
|
|
define internal void @f() comdat($c) {
|
2014-12-08 18:22:06 +01:00
|
|
|
ret void
|
|
|
|
}
|
2014-08-15 22:17:08 +02:00
|
|
|
|
2014-12-08 19:05:48 +01:00
|
|
|
; CHECK-DAG: $c = comdat any
|
2015-09-11 05:22:04 +02:00
|
|
|
; CHECK-DAG: @a = alias void (), void ()* @f
|
2015-01-06 23:55:16 +01:00
|
|
|
; CHECK-DAG: define internal void @f() comdat($c)
|
2014-12-08 19:05:48 +01:00
|
|
|
|
|
|
|
$f2 = comdat largest
|
2016-03-24 01:06:03 +01:00
|
|
|
define linkonce_odr void @f2() comdat($f2) {
|
2014-12-08 19:05:48 +01:00
|
|
|
ret void
|
|
|
|
}
|
2015-12-01 16:19:48 +01:00
|
|
|
define void @f3() comdat($f2) {
|
|
|
|
ret void
|
|
|
|
}
|
2014-12-08 19:05:48 +01:00
|
|
|
|
|
|
|
; CHECK-DAG: $f2 = comdat largest
|
2016-03-24 01:06:03 +01:00
|
|
|
; CHECK-DAG: define linkonce_odr void @f2()
|