1; RUN: llvm-link %s -S -o - | FileCheck %s
2
3$c = comdat any
4@a = alias void (), void ()* @f
5define internal void @f() comdat($c) {
6  ret void
7}
8
9; CHECK-DAG: $c = comdat any
10; CHECK-DAG: @a = alias void (), void ()* @f
11; CHECK-DAG: define internal void @f() comdat($c)
12
13$f2 = comdat largest
14define internal void @f2() comdat($f2) {
15  ret void
16}
17define void @f3() comdat($f2) {
18  ret void
19}
20
21; CHECK-DAG: $f2 = comdat largest
22; CHECK-DAG: define internal void @f2() comdat {
23