| Duncan P. N. Exon Smith | 5bf8fef | 2014-12-09 18:38:53 +0000 | [diff] [blame] | 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 | |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 14 | ; CHECK: !0 = !{!1} |
| 15 | !0 = !{!1} |
| Duncan P. N. Exon Smith | 5bf8fef | 2014-12-09 18:38:53 +0000 | [diff] [blame] | 16 | |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 17 | ; CHECK: !1 = !{} |
| 18 | !1 = !{} |
| Duncan P. N. Exon Smith | 5bf8fef | 2014-12-09 18:38:53 +0000 | [diff] [blame] | 19 | |
| 20 | ; CHECK-NOT: !2 |