Restore "Move metadata linking after lazy global materialization/linking."
[oota-llvm.git] / test / Linker / distinct-cycles.ll
1 ; RUN: llvm-link -o - -S %s | FileCheck %s
2 ; Crasher for PR22456: MapMetadata() should resolve all cycles.
3
4 ; CHECK: !named = !{!0}
5 !named = !{!0}
6
7 ; CHECK: !0 = distinct !{!1}
8 !0 = distinct !{!1}
9
10 ; CHECK-NEXT: !1 = !{!2}
11 ; CHECK-NEXT: !2 = !{!1}
12 !1 = !{!2}
13 !2 = !{!1}