brintos

brintos / llvm-project-archived public Read only

0
0
Text · 845 B · fba52d0 Raw
23 lines · plain
1# RUN: echo abcd > %t.txt2 3# Preserve input to verify it is not modified4# RUN: cp %t.txt %t-copy.txt5 6# -F <target> is equivalent to -I <target> -O <target>7# RUN: llvm-objcopy -F binary %t.txt %t.2.txt8# RUN: cmp %t-copy.txt %t.2.txt9 10# --target <target> is equivalent to --input-target <target> --output-target <target>11# RUN: llvm-objcopy --target binary %t.txt %t.3.txt12# RUN: cmp %t-copy.txt %t.3.txt13 14# --target is incompatibile with --input-target/--output-target15# 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-FLAG18# 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-FLAG21 22# BAD-FLAG: --target cannot be used with --input-target or --output-target23