forked from OSchip/llvm-project
[obj2yaml] Test dumping an empty .debug_aranges section.
This patch adds one test case that tests dumping an empty .debug_aranges section. Reviewed By: jhenderson, grimar Differential Revision: https://reviews.llvm.org/D85405
This commit is contained in:
parent
e82866d5d9
commit
6616d84cee
llvm/test/tools/obj2yaml/ELF/DWARF
|
@ -170,3 +170,20 @@ DWARF:
|
|||
- Length: 0x1234
|
||||
Version: 2
|
||||
CuOffset: 0x1234
|
||||
|
||||
## e) Test dumping an empty .debug_aranges section.
|
||||
|
||||
# RUN: yaml2obj --docnum=5 %s | obj2yaml | FileCheck %s --check-prefix=EMPTY-CONTENT
|
||||
|
||||
# EMPTY-CONTENT: DWARF:
|
||||
# EMPTY-CONTENT-NEXT: debug_aranges: []
|
||||
# EMPTY-CONTENT-NEXT: ...
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
Data: ELFDATA2LSB
|
||||
Type: ET_EXEC
|
||||
Machine: EM_X86_64
|
||||
DWARF:
|
||||
debug_aranges: []
|
||||
|
|
Loading…
Reference in New Issue