blob: 1853049c8acea7ea92a3b41264f7dc902f39c3a2 [file] [log] [blame]
Rafael Espindola20569e92017-12-05 16:40:56 +00001# REQUIRES: system-windows
Rafael Espindola74de7e02017-12-05 18:26:23 +00002# RUN: yaml2obj %s > %t.o
3# RUN: rm -f %t2.o
4# RUN: cp %t.o %t2.o
5# RUN: attrib +r %t2.o
Rafael Espindola20569e92017-12-05 16:40:56 +00006
Rafael Espindola74de7e02017-12-05 18:26:23 +00007# This fails because it cannot replace %t2.o
8# RUN: not llvm-objcopy %t.o %t2.o
Rafael Espindola20569e92017-12-05 16:40:56 +00009
10# But it doesn't leave any temporary files behind.
Rafael Espindola74de7e02017-12-05 18:26:23 +000011# RUN: not ls %t2.o.tmp*
Rafael Espindola20569e92017-12-05 16:40:56 +000012
13!ELF
14FileHeader:
15 Class: ELFCLASS64
16 Data: ELFDATA2LSB
17 Type: ET_REL
18 Machine: EM_X86_64