21 lines · plain
1; RUN: llvm-link %s %S/Inputs/unique-fwd-decl-order.ll -S -o - | FileCheck %s2; RUN: llvm-link %S/Inputs/unique-fwd-decl-order.ll %s -S -o - | FileCheck %s3 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 an6; operand-just-changed MDNode (with the same operands).7;8; Note that these two assembly files number the nodes identically, even though9; the nodes are in a different order. This is for the reader's convenience.10 11; CHECK: !named = !{!0}12!named = !{!0}13 14; CHECK: !0 = !{!1}15!0 = !{!1}16 17; CHECK: !1 = !{}18!1 = !{}19 20; CHECK-NOT: !221