1 # RUN: echo abcd > %t.txt
3 # Preserve input to verify it is not modified
4 # RUN: cp %t.txt %t-copy.txt
6 # -F <target> is equivalent to -I <target> -O <target>
7 # RUN: llvm-objcopy -F binary %t.txt %t.2.txt
8 # RUN: cmp %t-copy.txt %t.2.txt
10 # --target <target> is equivalent to --input-target <target> --output-target <target>
11 # RUN: llvm-objcopy --target binary %t.txt %t.3.txt
12 # RUN: cmp %t-copy.txt %t.3.txt
14 # --target is incompatibile with --input-target/--output-target
15 # RUN: not llvm-objcopy --target binary --input-target binary \
16 # RUN: %t.txt %t.4.txt 2>&1 \
17 # RUN: | FileCheck %s --check-prefix=BAD-FLAG
18 # RUN: not llvm-objcopy --target binary --output-target binary \
19 # RUN: %t.txt %t.4.txt 2>&1 \
20 # RUN: | FileCheck %s --check-prefix=BAD-FLAG
22 # BAD-FLAG: --target cannot be used with --input-target or --output-target