2014-12-08 17:22:06 +00:00
|
|
|
; RUN: llvm-link %s -S -o - | FileCheck %s
|
|
|
|
|
|
|
|
$c = comdat any
|
|
|
|
@a = alias void ()* @f
|
2015-01-06 22:55:16 +00:00
|
|
|
define internal void @f() comdat($c) {
|
2014-12-08 17:22:06 +00:00
|
|
|
ret void
|
|
|
|
}
|
2014-08-15 20:17:08 +00:00
|
|
|
|
2014-12-08 18:05:48 +00:00
|
|
|
; CHECK-DAG: $c = comdat any
|
|
|
|
; CHECK-DAG: @a = alias void ()* @f
|
2015-01-06 22:55:16 +00:00
|
|
|
; CHECK-DAG: define internal void @f() comdat($c)
|
2014-12-08 18:05:48 +00:00
|
|
|
|
|
|
|
$f2 = comdat largest
|
2015-01-06 22:55:16 +00:00
|
|
|
define internal void @f2() comdat($f2) {
|
2014-12-08 18:05:48 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-DAG: $f2 = comdat largest
|
2015-01-06 22:55:16 +00:00
|
|
|
; CHECK-DAG: define internal void @f2() comdat {
|