Duncan P. N. Exon Smith | c8f810a | 2015-02-13 01:35:40 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s |
| 2 | ; RUN: verify-uselistorder %s |
| 3 | |
| 4 | @foo = global i32 0 |
| 5 | |
| 6 | ; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6} |
| 7 | !named = !{!0, !1, !2, !3, !4, !5, !6} |
| 8 | |
| 9 | !0 = distinct !{} |
Duncan P. N. Exon Smith | a5c57cc | 2015-02-20 20:35:17 +0000 | [diff] [blame] | 10 | !1 = distinct !{} |
Duncan P. N. Exon Smith | c8f810a | 2015-02-13 01:35:40 +0000 | [diff] [blame] | 11 | !2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir") |
| 12 | !3 = distinct !{} |
| 13 | !4 = distinct !{} |
| 14 | |
Duncan P. N. Exon Smith | 16d182a | 2015-02-28 23:21:38 +0000 | [diff] [blame^] | 15 | ; CHECK: !5 = !MDGlobalVariable(name: "foo", linkageName: "foo", scope: !0, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, variable: i32* @foo, declaration: !4) |
| 16 | !5 = !MDGlobalVariable(name: "foo", linkageName: "foo", scope: !0, |
Duncan P. N. Exon Smith | a5c57cc | 2015-02-20 20:35:17 +0000 | [diff] [blame] | 17 | file: !2, line: 7, type: !3, isLocal: true, |
Duncan P. N. Exon Smith | c8f810a | 2015-02-13 01:35:40 +0000 | [diff] [blame] | 18 | isDefinition: false, variable: i32* @foo, |
| 19 | declaration: !4) |
| 20 | |
Duncan P. N. Exon Smith | 16d182a | 2015-02-28 23:21:38 +0000 | [diff] [blame^] | 21 | ; CHECK: !6 = !MDGlobalVariable(name: "bar", scope: null, isLocal: false, isDefinition: true) |
Duncan P. N. Exon Smith | c8f810a | 2015-02-13 01:35:40 +0000 | [diff] [blame] | 22 | !6 = !MDGlobalVariable(name: "bar") |