| Duncan P. N. Exon Smith | 1c93116 | 2015-02-13 01:46:02 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s |
| 2 | ; RUN: verify-uselistorder %s |
| 3 | |
| Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 4 | ; CHECK: !named = !{!0, !3, !4, !5, !5} |
| 5 | !named = !{!0, !3, !4, !5, !6} |
| Duncan P. N. Exon Smith | 1c93116 | 2015-02-13 01:46:02 +0000 | [diff] [blame] | 6 | |
| Davide Italiano | a017306 | 2016-04-04 02:11:34 +0000 | [diff] [blame] | 7 | !llvm.module.flags = !{!7} |
| Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 8 | !llvm.dbg.cu = !{!1} |
| Davide Italiano | a017306 | 2016-04-04 02:11:34 +0000 | [diff] [blame] | 9 | |
| Duncan P. N. Exon Smith | 814b8e9 | 2015-08-28 20:26:49 +0000 | [diff] [blame] | 10 | ; CHECK: !0 = distinct !DISubprogram({{.*}}) |
| Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 11 | !0 = distinct !DISubprogram(name: "foo", isDefinition: true, unit: !1) |
| Duncan P. N. Exon Smith | 1c93116 | 2015-02-13 01:46:02 +0000 | [diff] [blame] | 12 | |
| Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 13 | !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", |
| 14 | file: !2, |
| 15 | isOptimized: true, flags: "-O2", |
| 16 | splitDebugFilename: "abc.debug", emissionKind: 2) |
| 17 | !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") |
| 18 | ; CHECK: !3 = !DICompositeType({{.*}}) |
| 19 | !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 32, align: 32) |
| 20 | |
| 21 | ; CHECK-NEXT: !4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, line: 7) |
| 22 | !4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, |
| Duncan P. N. Exon Smith | 16d182a | 2015-02-28 23:21:38 +0000 | [diff] [blame] | 23 | entity: !1, line: 7) |
| Duncan P. N. Exon Smith | 1c93116 | 2015-02-13 01:46:02 +0000 | [diff] [blame] | 24 | |
| Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 25 | ; CHECK-NEXT: !5 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) |
| 26 | !5 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) |
| 27 | !6 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null, |
| Duncan P. N. Exon Smith | 16d182a | 2015-02-28 23:21:38 +0000 | [diff] [blame] | 28 | line: 0) |
| Davide Italiano | a017306 | 2016-04-04 02:11:34 +0000 | [diff] [blame] | 29 | !7 = !{i32 2, !"Debug Info Version", i32 3} |