Debian Codegraph @

llvm/test/tools/llvm-objcopy/ELF/bad-output-format.test

raw
1 # RUN: yaml2obj %s -o %t.o
2
3 # RUN: not llvm-objcopy -O xyz %t.o %t.2.o 2>&1 \
4 # RUN: | FileCheck %s --check-prefix=BAD-OUTPUT-FORMAT
5
6 # 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
11 !ELF
12 FileHeader:
13 Class: ELFCLASS32
14 Data: ELFDATA2LSB
15 Type: ET_EXEC
16 Machine: EM_386
17
18 # BAD-OUTPUT-FORMAT: invalid output format: 'xyz'
19 # BAD-OUTPUT-FORMAT-BSD: invalid output format: 'xyz-freebsd'