Duncan P. N. Exon Smith | 6a48483 | 2015-01-13 21:10:44 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | FileCheck %s |
| 2 | ; RUN: verify-uselistorder %s |
| 3 | |
Duncan P. N. Exon Smith | 2f5bb31 | 2015-01-16 17:33:08 +0000 | [diff] [blame] | 4 | ; CHECK: !named = !{!0, !1, !1, !2, !2, !3, !3, !4} |
| 5 | !named = !{!0, !1, !2, !3, !4, !5, !6, !7} |
Duncan P. N. Exon Smith | 6a48483 | 2015-01-13 21:10:44 +0000 | [diff] [blame] | 6 | |
Davide Italiano | a017306 | 2016-04-04 02:11:34 +0000 | [diff] [blame] | 7 | !llvm.module.flags = !{!10} |
| 8 | !llvm.dbg.cu = !{!8} |
| 9 | |
Duncan P. N. Exon Smith | 814b8e9 | 2015-08-28 20:26:49 +0000 | [diff] [blame] | 10 | ; CHECK: !0 = distinct !DISubprogram( |
| 11 | !0 = distinct !DISubprogram() |
Duncan P. N. Exon Smith | 6a48483 | 2015-01-13 21:10:44 +0000 | [diff] [blame] | 12 | |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 13 | ; CHECK-NEXT: !1 = !DILocation(line: 3, column: 7, scope: !0) |
| 14 | !1 = !DILocation(line: 3, column: 7, scope: !0) |
| 15 | !2 = !DILocation(scope: !0, column: 7, line: 3) |
Duncan P. N. Exon Smith | 6a48483 | 2015-01-13 21:10:44 +0000 | [diff] [blame] | 16 | |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 17 | ; CHECK-NEXT: !2 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !1) |
| 18 | !3 = !DILocation(scope: !0, inlinedAt: !1, column: 7, line: 3) |
| 19 | !4 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !1) |
Duncan P. N. Exon Smith | 6a48483 | 2015-01-13 21:10:44 +0000 | [diff] [blame] | 20 | |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 21 | ; CHECK-NEXT: !3 = !DILocation(line: 0, scope: !0) |
| 22 | !5 = !DILocation(scope: !0) |
| 23 | !6 = !DILocation(scope: !0, column: 0, line: 0) |
Duncan P. N. Exon Smith | 2f5bb31 | 2015-01-16 17:33:08 +0000 | [diff] [blame] | 24 | |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 25 | ; CHECK-NEXT: !4 = !DILocation(line: 4294967295, column: 65535, scope: !0) |
| 26 | !7 = !DILocation(line: 4294967295, column: 65535, scope: !0) |
Davide Italiano | a017306 | 2016-04-04 02:11:34 +0000 | [diff] [blame] | 27 | |
| 28 | !8 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", |
| 29 | file: !9, |
| 30 | isOptimized: true, flags: "-O2", |
| 31 | splitDebugFilename: "abc.debug", emissionKind: 2, |
| 32 | subprograms: !{!0}) |
| 33 | !9 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") |
| 34 | !10 = !{i32 2, !"Debug Info Version", i32 3} |