1## Check that obj2yaml does not write a section Info
2## field in the case when it has a value of zero.
3
4# RUN: yaml2obj %s -o %t
5# RUN: obj2yaml %t | FileCheck %s
6
7# CHECK:      Sections:
8# CHECK-NEXT:  - Name: .foo
9# CHECK-NEXT:    Type: SHT_PROGBITS
10# CHECK-NEXT:  - Name: .bar
11# CHECK-NEXT:    Type: SHT_PROGBITS
12# CHECK-NEXT:    Info: 0x1
13
14--- !ELF
15FileHeader:
16  Class: ELFCLASS64
17  Data:  ELFDATA2LSB
18  Type:  ET_DYN
19Sections:
20  - Name: .foo
21    Type: SHT_PROGBITS
22  - Name: .bar
23    Type: SHT_PROGBITS
24    Info: 1
25