blob: c3483709ae823275bcff12167386f447cfed6f07 [file] [log] [blame]
Duncan P. N. Exon Smith6a484832015-01-13 21:10:44 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
Duncan P. N. Exon Smith2f5bb312015-01-16 17:33:08 +00004; CHECK: !named = !{!0, !1, !1, !2, !2, !3, !3, !4}
5!named = !{!0, !1, !2, !3, !4, !5, !6, !7}
Duncan P. N. Exon Smith6a484832015-01-13 21:10:44 +00006
Davide Italianoa0173062016-04-04 02:11:34 +00007!llvm.module.flags = !{!10}
8!llvm.dbg.cu = !{!8}
9
Duncan P. N. Exon Smith814b8e92015-08-28 20:26:49 +000010; CHECK: !0 = distinct !DISubprogram(
11!0 = distinct !DISubprogram()
Duncan P. N. Exon Smith6a484832015-01-13 21:10:44 +000012
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000013; CHECK-NEXT: !1 = !DILocation(line: 3, column: 7, scope: !0)
14!1 = !DILocation(line: 3, column: 7, scope: !0)
15!2 = !DILocation(scope: !0, column: 7, line: 3)
Duncan P. N. Exon Smith6a484832015-01-13 21:10:44 +000016
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000017; CHECK-NEXT: !2 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !1)
18!3 = !DILocation(scope: !0, inlinedAt: !1, column: 7, line: 3)
19!4 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !1)
Duncan P. N. Exon Smith6a484832015-01-13 21:10:44 +000020
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000021; CHECK-NEXT: !3 = !DILocation(line: 0, scope: !0)
22!5 = !DILocation(scope: !0)
23!6 = !DILocation(scope: !0, column: 0, line: 0)
Duncan P. N. Exon Smith2f5bb312015-01-16 17:33:08 +000024
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000025; CHECK-NEXT: !4 = !DILocation(line: 4294967295, column: 65535, scope: !0)
26!7 = !DILocation(line: 4294967295, column: 65535, scope: !0)
Davide Italianoa0173062016-04-04 02:11:34 +000027
28!8 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
29 file: !9,
30 isOptimized: true, flags: "-O2",
31 splitDebugFilename: "abc.debug", emissionKind: 2,
32 subprograms: !{!0})
33!9 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
34!10 = !{i32 2, !"Debug Info Version", i32 3}