1## Check that "Index" and "Section" cannot be used together in a symbol.
2
3# RUN: not yaml2obj %s
4
5!ELF
6FileHeader:
7  Class: ELFCLASS64
8  Data:  ELFDATA2LSB
9  Type:  ET_EXEC
10Sections:
11  - Name:            .text
12    Type:            SHT_PROGBITS
13    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
14    Address:         0x1000
15    AddressAlign:    0x0000000000000010
16    Content:         "0000000000000000"
17Symbols:
18  Global:
19    - Name:     _start
20      Section:  .text
21      Index:    SHN_ABS
22