1; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4; Force a specific numbering.
5; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
6!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
7; CHECK: !llvm.dbg.cu = !{!8, !9, !10}
8!llvm.dbg.cu = !{!8, !9, !10}
9
10!0 = distinct !{}
11!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
12!2 = distinct !{}
13!3 = distinct !{}
14!4 = distinct !{}
15!5 = distinct !{}
16!6 = distinct !{}
17!7 = distinct !{}
18
19; CHECK: !8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: FullDebug, enums: !2, retainedTypes: !3, globals: !5, imports: !6, macros: !7, dwoId: 42, rangesBaseAddress: true, sysroot: "/")
20!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
21                             isOptimized: true, flags: "-O2", runtimeVersion: 2,
22                             splitDebugFilename: "abc.debug",
23                             emissionKind: FullDebug,
24                             enums: !2, retainedTypes: !3,
25                             globals: !5, imports: !6, macros: !7, dwoId: 42,
26                             splitDebugInlining: true, rangesBaseAddress: true, sysroot: "/")
27
28; CHECK: !9 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug)
29!9 = distinct !DICompileUnit(language: 12, file: !1, producer: "",
30                             isOptimized: false, flags: "", runtimeVersion: 0,
31                             splitDebugFilename: "", emissionKind: NoDebug)
32
33; CHECK: !10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: LineTablesOnly, splitDebugInlining: false)
34!10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
35                             isOptimized: true, flags: "-O2", runtimeVersion: 2,
36                             splitDebugFilename: "abc.debug",
37                             emissionKind: LineTablesOnly, splitDebugInlining: false)
38
39!llvm.module.flags = !{!11}
40!11 = !{i32 2, !"Debug Info Version", i32 3}
41