summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/yaml2obj/ELF/empty-symbols.yaml
blob: 00c16f62c6c60bf078fe394c76e365f62f9d5082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
## Ensure yaml2obj doesn't error on empty optional mappings, such as Symbols
# RUN: yaml2obj %s -o /dev/null

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_DYN
  Machine:         EM_X86_64
## We usually express this as `Symbols: []`, but here we show that the value
## can be omitted.
Symbols:
OpenPOWER on IntegriCloud