blob: 2f0b85c4dc00400d7c86413554db02a88a69dfe5 [file] [log] [blame]
Duncan P. N. Exon Smith72fe2d02015-02-13 01:39:44 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4@foo = global i32 0
5
6; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
7!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
8
Davide Italianoa0173062016-04-04 02:11:34 +00009!llvm.module.flags = !{!10}
10!llvm.dbg.cu = !{!9}
11
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000012!0 = distinct !DISubprogram()
Duncan P. N. Exon Smitha5c57cc2015-02-20 20:35:17 +000013!1 = distinct !{}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000014!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
15!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
16!4 = !DILocation(scope: !0)
Duncan P. N. Exon Smith72fe2d02015-02-13 01:39:44 +000017
Duncan P. N. Exon Smithed013cd2015-07-31 18:58:39 +000018; CHECK: !5 = !DILocalVariable(name: "foo", arg: 3, scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial)
19; CHECK: !6 = !DILocalVariable(name: "foo", scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial)
20!5 = !DILocalVariable(name: "foo", arg: 3,
Duncan P. N. Exon Smith16d182a2015-02-28 23:21:38 +000021 scope: !0, file: !2, line: 7, type: !3,
Duncan P. N. Exon Smith62e0f452015-04-15 22:29:27 +000022 flags: DIFlagArtificial)
Duncan P. N. Exon Smithed013cd2015-07-31 18:58:39 +000023!6 = !DILocalVariable(name: "foo", scope: !0,
Duncan P. N. Exon Smith62e0f452015-04-15 22:29:27 +000024 file: !2, line: 7, type: !3, flags: DIFlagArtificial)
Duncan P. N. Exon Smith72fe2d02015-02-13 01:39:44 +000025
Duncan P. N. Exon Smithed013cd2015-07-31 18:58:39 +000026; CHECK: !7 = !DILocalVariable(arg: 1, scope: !0)
27; CHECK: !8 = !DILocalVariable(scope: !0)
28!7 = !DILocalVariable(scope: !0, arg: 1)
29!8 = !DILocalVariable(scope: !0)
Davide Italianoa0173062016-04-04 02:11:34 +000030
31!9 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
32 file: !2,
33 isOptimized: true, flags: "-O2",
34 splitDebugFilename: "abc.debug", emissionKind: 2,
35 subprograms: !{!0})
36!10 = !{i32 2, !"Debug Info Version", i32 3}