[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / X86 / dwarf4-subprogram-single-gc-ranges.test
blob9080052a2991242da1325758468c6851bed19e8d
1 # REQUIRES: system-linux
3 # RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-subprogram-single-gc-ranges-main.s -o %t1.o
4 # RUN: %clang %cflags %t1.o -o %t.exe -Wl,-q
5 # RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections &> %t1.txt
6 # RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt >> %t1.txt
7 # RUN: cat %t1.txt | FileCheck --check-prefix=POSTCHECK %s
9 # This test checks BOLT correctly handles DW_TAG_subprogram with Ranges with single entry, when function was GCed.
11 # POSTCHECK: BOLT-WARNING: [internal-dwarf-error]: subprogram got GCed by the linker, DW_AT_ranges is used
13 # POSTCHECK: DW_TAG_subprogram
14 # POSTCHECK-NEXT: DW_AT_frame_base
15 # POSTCHECK-NEXT: DW_AT_linkage_name
16 # POSTCHECK-SAME: _Z7doStuffi
17 # POSTCHECK-NEXT: DW_AT_name
18 # POSTCHECK-NEXT: DW_AT_decl_file
19 # POSTCHECK-NEXT: DW_AT_decl_line
20 # POSTCHECK-NEXT: DW_AT_type
21 # POSTCHECK-NEXT: DW_AT_external
22 # POSTCHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
23 # POSTCHECK-NEXT: DW_AT_high_pc [DW_FORM_data4] (0x00000001)