[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:
Xing GUO 2020-08-06 20:39:34 +08:00
parent e82866d5d9
commit 6616d84cee
1 changed files with 17 additions and 0 deletions

View File

@ -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: []