blob: 5826448e06f98c1a6ad4cc8d1afd78aabee1aa46 [file] [log] [blame]
Duncan P. N. Exon Smithc1f1acc2015-02-13 01:25:10 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
Adrian Prantlfaebbb02016-03-28 21:06:26 +00004; Force a specific numbering.
Amjad Abouda9bcf162015-12-10 12:56:35 +00005; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
6!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
Adrian Prantlfaebbb02016-03-28 21:06:26 +00007; CHECK: !llvm.dbg.cu = !{!8, !9}
8!llvm.dbg.cu = !{!8, !9}
Duncan P. N. Exon Smithc1f1acc2015-02-13 01:25:10 +00009
Duncan P. N. Exon Smitha5c57cc2015-02-20 20:35:17 +000010!0 = distinct !{}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000011!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
Duncan P. N. Exon Smithc1f1acc2015-02-13 01:25:10 +000012!2 = distinct !{}
13!3 = distinct !{}
14!4 = distinct !{}
15!5 = distinct !{}
16!6 = distinct !{}
Amjad Abouda9bcf162015-12-10 12:56:35 +000017!7 = distinct !{}
Duncan P. N. Exon Smithc1f1acc2015-02-13 01:25:10 +000018
Amjad Abouda9bcf162015-12-10 12:56:35 +000019; CHECK: !8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: 3, enums: !2, retainedTypes: !3, subprograms: !4, globals: !5, imports: !6, macros: !7, dwoId: 42)
20!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
Duncan P. N. Exon Smith55ca9642015-08-03 17:26:41 +000021 isOptimized: true, flags: "-O2", runtimeVersion: 2,
22 splitDebugFilename: "abc.debug", emissionKind: 3,
23 enums: !2, retainedTypes: !3, subprograms: !4,
Amjad Abouda9bcf162015-12-10 12:56:35 +000024 globals: !5, imports: !6, macros: !7, dwoId: 42)
Duncan P. N. Exon Smithc1f1acc2015-02-13 01:25:10 +000025
Amjad Abouda9bcf162015-12-10 12:56:35 +000026; CHECK: !9 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: 0)
27!9 = distinct !DICompileUnit(language: 12, file: !1, producer: "",
Duncan P. N. Exon Smith55ca9642015-08-03 17:26:41 +000028 isOptimized: false, flags: "", runtimeVersion: 0,
29 splitDebugFilename: "", emissionKind: 0)
Adrian Prantlfaebbb02016-03-28 21:06:26 +000030!llvm.module.flags = !{!10}
31!10 = !{i32 2, !"Debug Info Version", i32 3}