1; 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 14; CHECK: !0 = !{!1} 15!0 = !{!1} 16 17; CHECK: !1 = !{} 18!1 = !{} 19 20; CHECK-NOT: !2 21