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.
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
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
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
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
25 # CHECK: .debug_names contents:
26 # CHECK: Compilation Unit offsets [
27 # CHECK: CU[0]: 0x00000000
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