1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools/obj2yaml/ELF/sections-info.yaml
Georgii Rymar 53a457743b Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930).
This reverts reverting commit fc40a03323a4b265ccbed34a07e281b13c5e8367
and fixes LLD (MachO/wasm) tests that failed previously.
2020-11-18 13:08:46 +03:00

25 lines
520 B
YAML

## Check that obj2yaml does not write a section Info
## field in the case when it has a value of zero.
# RUN: yaml2obj %s -o %t
# RUN: obj2yaml %t | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: - Name: .foo
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: - Name: .bar
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Info: 0x1
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_DYN
Sections:
- Name: .foo
Type: SHT_PROGBITS
- Name: .bar
Type: SHT_PROGBITS
Info: 1