linux-packaging-mono/external/llvm/test/Linker/unique-fwd-decl-order.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

21 lines
635 B
LLVM

; RUN: llvm-link %s %S/Inputs/unique-fwd-decl-order.ll -S -o - | FileCheck %s
; RUN: llvm-link %S/Inputs/unique-fwd-decl-order.ll %s -S -o - | FileCheck %s
; This test exercises MDNode hashing. For the nodes to be correctly uniqued,
; the hash of a to-be-created MDNode has to match the hash of an
; operand-just-changed MDNode (with the same operands).
;
; Note that these two assembly files number the nodes identically, even though
; the nodes are in a different order. This is for the reader's convenience.
; CHECK: !named = !{!0, !0}
!named = !{!0}
; CHECK: !0 = !{!1}
!0 = !{!1}
; CHECK: !1 = !{}
!1 = !{}
; CHECK-NOT: !2