25 lines · yaml
1## Check that obj2yaml does not write a section Info2## field in the case when it has a value of zero.3 4# RUN: yaml2obj %s -o %t5# RUN: obj2yaml %t | FileCheck %s6 7# CHECK: Sections:8# CHECK-NEXT: - Name: .foo9# CHECK-NEXT: Type: SHT_PROGBITS10# CHECK-NEXT: - Name: .bar11# CHECK-NEXT: Type: SHT_PROGBITS12# CHECK-NEXT: Info: 0x113 14--- !ELF15FileHeader:16 Class: ELFCLASS6417 Data: ELFDATA2LSB18 Type: ET_DYN19Sections:20 - Name: .foo21 Type: SHT_PROGBITS22 - Name: .bar23 Type: SHT_PROGBITS24 Info: 125