blob: df1a446ae5fc3b5c806e439f28df92bbe8fd80c6 [file] [log] [blame]
Fangrui Song55c81d42020-01-21 17:02:25 -08001# RUN: yaml2obj %s -o %t.o
Jordan Rupprecht70038e02019-01-07 16:59:12 +00002
3# RUN: not llvm-objcopy -O xyz %t.o %t.2.o 2>&1 \
4# RUN: | FileCheck %s --check-prefix=BAD-OUTPUT-FORMAT
5
Jordan Rupprechtb0b65ca2019-04-17 07:42:31 +00006# FreeBSD has some special output format parsing that looks up the name without
7# the trailing "-freebsd". Make sure we include the full output format name.
8# RUN: not llvm-objcopy -O xyz-freebsd %t.o %t.2.o 2>&1 \
9# RUN: | FileCheck %s --check-prefix=BAD-OUTPUT-FORMAT-BSD
10
Jordan Rupprecht70038e02019-01-07 16:59:12 +000011!ELF
12FileHeader:
13 Class: ELFCLASS32
14 Data: ELFDATA2LSB
15 Type: ET_EXEC
16 Machine: EM_386
17
Alex Brachetd54d4f92019-06-14 02:04:02 +000018# BAD-OUTPUT-FORMAT: invalid output format: 'xyz'
19# BAD-OUTPUT-FORMAT-BSD: invalid output format: 'xyz-freebsd'