xref: /llvm-project/llvm/test/tools/llvm-dwarfutil/ELF/X86/accelerator-dwarf5.test (revision f1fdfe6888f93b9f6dfb4689e1f3206de584ff5b)
1## This test checks that .debug_names accelerator table
2## is generated if --build-accelerator=DWARF option is
3## specified and source file has DWARFv5 debug info.
4
5# RUN: llvm-dwarfutil --no-garbage-collection --build-accelerator=DWARF %p/Inputs/dwarf5.out %t1
6# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY
7# RUN: llvm-dwarfdump -a %t1 | FileCheck %s
8
9# RUN: llvm-dwarfutil --garbage-collection --build-accelerator=DWARF %p/Inputs/dwarf5.out %t1
10# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY
11# RUN: llvm-dwarfdump -a %t1 | FileCheck %s
12#
13# RUN: llvm-dwarfutil --linker parallel --no-garbage-collection \
14# RUN:   --build-accelerator=DWARF %p/Inputs/dwarf5.out %t1
15# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY
16# RUN: llvm-dwarfdump -a %t1 | FileCheck %s
17
18# RUN: llvm-dwarfutil --linker parallel --garbage-collection \
19# RUN:   --build-accelerator=DWARF %p/Inputs/dwarf5.out %t1
20# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY
21# RUN: llvm-dwarfdump -a %t1 | FileCheck %s
22
23# VERIFY: No errors
24
25# CHECK: .debug_names contents:
26# CHECK:  Compilation Unit offsets [
27# CHECK:    CU[0]: 0x00000000
28# CHECK:  ]
29# CHECK: Abbreviations
30# CHECK: String: {{.*}} "_Z3foov"
31# CHECK: Tag: DW_TAG_subprogram
32# CHECK: String: {{.*}} "int"
33# CHECK: Tag: DW_TAG_base_type
34# CHECK: String: {{.*}} "foo"
35# CHECK: Tag: DW_TAG_subprogram
36# CHECK: String: {{.*}} "A"
37# CHECK: Tag: DW_TAG_structure_type
38# CHECK: String: {{.*}} "main"
39# CHECK: Tag: DW_TAG_subprogram
40# CHECK: String: {{.*}} "char"
41# CHECK: Tag: DW_TAG_base_type
42