llvm/test/tools/llvm-objcopy/ELF/cannot-delete-dest.test
raw| 1 | # REQUIRES: system-windows |
| 2 | # RUN: yaml2obj %s -o %t.o |
| 3 | # RUN: rm -f %t2.o |
| 4 | # RUN: cp %t.o %t2.o |
| 5 | # RUN: attrib +r %t2.o |
| 6 | |
| 7 | # This fails because it cannot replace %t2.o |
| 8 | # RUN: not llvm-objcopy %t.o %t2.o |
| 9 | |
| 10 | # But it doesn't leave any temporary files behind. |
| 11 | # RUN: not ls %t2.o.tmp* |
| 12 | |
| 13 | !ELF |
| 14 | FileHeader: |
| 15 | Class: ELFCLASS64 |
| 16 | Data: ELFDATA2LSB |
| 17 | Type: ET_REL |
| 18 | Machine: EM_X86_64 |