1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/tools/llvm-objcopy/cannot-delete-dest.test
Rafael Espindola 12cba944e4 Simplify test.
It can use attrib instead of icacls.

llvm-svn: 319809
2017-12-05 18:26:23 +00:00

19 lines
408 B
Plaintext

# REQUIRES: system-windows
# RUN: yaml2obj %s > %t.o
# RUN: rm -f %t2.o
# RUN: cp %t.o %t2.o
# RUN: attrib +r %t2.o
# This fails because it cannot replace %t2.o
# RUN: not llvm-objcopy %t.o %t2.o
# But it doesn't leave any temporary files behind.
# RUN: not ls %t2.o.tmp*
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64