binary-out-error.test 346 Bytes
# RUN: yaml2obj %s -o %t
# RUN: not llvm-objcopy -O binary %t - 2>&1 | FileCheck %s --check-prefix=SYMTAB
# SYMTAB: cannot write symbol table '.symtab' out to binary

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_DYN
  Machine: EM_X86_64
Sections:
  - Name: .symtab
    Type: SHT_SYMTAB
    Flags: [ SHF_ALLOC ]