aboutsummaryrefslogtreecommitdiff
path: root/test/tools/llvm-objcopy/cannot-delete-dest.test
blob: 1853049c8acea7ea92a3b41264f7dc902f39c3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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