1 # RUN: yaml2obj %s -o %t.o
3 # RUN: not llvm-objcopy -O xyz %t.o %t.2.o 2>&1 \
4 # RUN: | FileCheck %s --check-prefix=BAD-OUTPUT-FORMAT
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
18 # BAD-OUTPUT-FORMAT: invalid output format: 'xyz'
19 # BAD-OUTPUT-FORMAT-BSD: invalid output format: 'xyz-freebsd'