1 ; RUN: llvm-as <%s -bitcode-mdindex-threshold=0 | llvm-bcanalyzer -dump | FileCheck %s
2 ; Check that distinct nodes are emitted before uniqued nodes, even if that
3 ; breaks post-order traversals.
5 ; Nodes in this testcase are numbered to match how they are referenced in
6 ; bitcode. !1 is referenced as opN=1.
8 ; CHECK: <DISTINCT_NODE op0=2/>
11 ; CHECK-NEXT: <NODE op0=1/>
14 ; Before the named records we emit the index containing the position of the
15 ; previously emitted records
16 ; CHECK-NEXT: <INDEX {{.*}} (offset match)
18 ; Note: named metadata nodes are not cannot reference null so their operands
19 ; are numbered off-by-one.
21 ; CHECK-NEXT: <NAMED_NODE op0=1/>