1; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !7, !8, !8}
5!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10}
6
7!0 = distinct !{}
8!1 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
9!2 = distinct !{}
10!3 = distinct !{}
11!4 = distinct !{}
12!5 = distinct !{}
13!6 = distinct !{}
14
15; CHECK: !7 = !MDCompileUnit(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)
16!7 = !MDCompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
17                    isOptimized: true, flags: "-O2", runtimeVersion: 2,
18                    splitDebugFilename: "abc.debug", emissionKind: 3,
19                    enums: !2, retainedTypes: !3, subprograms: !4,
20                    globals: !5, imports: !6)
21!8 = !MDCompileUnit(language: 12, file: !1, producer: "clang",
22                    isOptimized: true, flags: "-O2", runtimeVersion: 2,
23                    splitDebugFilename: "abc.debug", emissionKind: 3,
24                    enums: !2, retainedTypes: !3, subprograms: !4,
25                    globals: !5, imports: !6)
26
27; CHECK: !8 = !MDCompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: 0)
28!9 = !MDCompileUnit(language: 12, file: !1, producer: "",
29                    isOptimized: false, flags: "", runtimeVersion: 0,
30                    splitDebugFilename: "", emissionKind: 0)
31!10 = !MDCompileUnit(language: 12, file: !1)
32