xref: /llvm-project/llvm/test/DebugInfo/X86/gnu-public-names-empty.ll (revision 66cf14d06b1c5d20417e312fabd14ffaf4314ae3)
1b52e2366SPeter Collingbourne; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s
2c948b9dfSEric Christopher
3c948b9dfSEric Christopher; Generated from:
4c948b9dfSEric Christopher
5c948b9dfSEric Christopher; static int a __attribute__((section("a")));
6c948b9dfSEric Christopher
7c948b9dfSEric Christopher; Check that the attributes in the compile unit both point to a correct
8c948b9dfSEric Christopher; location, even when nothing is exported.
947c254beSDavid Blaikie; CHECK: DW_AT_GNU_pubnames [DW_FORM_flag_present]   (true)
1047c254beSDavid Blaikie; CHECK-NOT: DW_AT_GNU_pubtypes [
11c948b9dfSEric Christopher
12b3cee2fbSDavid Blaikie; CHECK: .debug_gnu_pubnames contents:
13b3cee2fbSDavid Blaikie; CHECK-NEXT: length = 0x0000000e
14b3cee2fbSDavid Blaikie; CHECK-NEXT: Offset
15b3cee2fbSDavid Blaikie; CHECK-NEXT: {{^$}}
16b3cee2fbSDavid Blaikie
17c948b9dfSEric Christopher!llvm.dbg.cu = !{!0}
18409558f8SManman Ren!llvm.module.flags = !{!3, !4}
19c948b9dfSEric Christopher
20*66cf14d0SDavid Blaikie!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.4 (trunk 191846) (llvm/trunk 191866)", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !5, globals: !2, imports: !2, nameTableKind: GNU)
21a9308c49SDuncan P. N. Exon Smith!1 = !DIFile(filename: "foo.c", directory: "/usr/local/google/home/echristo/tmp")
22be7ea19bSDuncan P. N. Exon Smith!2 = !{}
23be7ea19bSDuncan P. N. Exon Smith!3 = !{i32 2, !"Dwarf Version", i32 4}
24e274180fSDuncan P. N. Exon Smith!4 = !{i32 1, !"Debug Info Version", i32 3}
2507963bd1SDavid Blaikie!5 = !{!6}
2607963bd1SDavid Blaikie!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
27