1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2 ; RUN: verify-uselistorder %s
6 ; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
7 !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
9 !llvm.module.flags = !{!10}
12 !0 = distinct !DISubprogram(unit: !1)
13 !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
15 isOptimized: true, flags: "-O2",
16 splitDebugFilename: "abc.debug", emissionKind: 2)
17 !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
18 !3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
19 !4 = !DILocation(scope: !0)
21 ; CHECK: !5 = !DILocalVariable(name: "foo", arg: 3, scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial, align: 32)
22 ; CHECK: !6 = !DILocalVariable(name: "foo", scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial)
23 !5 = !DILocalVariable(name: "foo", arg: 3,
24 scope: !0, file: !2, line: 7, type: !3,
25 flags: DIFlagArtificial, align: 32)
26 !6 = !DILocalVariable(name: "foo", scope: !0,
27 file: !2, line: 7, type: !3, flags: DIFlagArtificial)
29 ; CHECK: !7 = !DILocalVariable(arg: 1, scope: !0)
30 ; CHECK: !8 = !DILocalVariable(scope: !0)
31 !7 = !DILocalVariable(scope: !0, arg: 1)
32 !8 = !DILocalVariable(scope: !0)
35 !10 = !{i32 2, !"Debug Info Version", i32 3}