blob: e1d8c2e5cf92f877b4cfcbc13643bdd7d6d6eaa9 [file] [log] [blame]
Duncan P. N. Exon Smith5bf8fef2014-12-09 18:38:53 +00001; RUN: llvm-link %s %S/Inputs/unique-fwd-decl-order.ll -S -o - | FileCheck %s
2; RUN: llvm-link %S/Inputs/unique-fwd-decl-order.ll %s -S -o - | FileCheck %s
3
4; This test exercises MDNode hashing. For the nodes to be correctly uniqued,
5; the hash of a to-be-created MDNode has to match the hash of an
6; operand-just-changed MDNode (with the same operands).
7;
8; Note that these two assembly files number the nodes identically, even though
9; the nodes are in a different order. This is for the reader's convenience.
10
11; CHECK: !named = !{!0, !0}
12!named = !{!0}
13
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000014; CHECK: !0 = !{!1}
15!0 = !{!1}
Duncan P. N. Exon Smith5bf8fef2014-12-09 18:38:53 +000016
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000017; CHECK: !1 = !{}
18!1 = !{}
Duncan P. N. Exon Smith5bf8fef2014-12-09 18:38:53 +000019
20; CHECK-NOT: !2