Rafael Espindola | 20569e9 | 2017-12-05 16:40:56 +0000 | [diff] [blame] | 1 | # REQUIRES: system-windows |
| 2 | # RUN: icacls %t /grant Everyone:(DC) || true |
| 3 | # RUN: rm -rf %t |
| 4 | # RUN: mkdir %t |
| 5 | # RUN: cd %t |
| 6 | # RUN: yaml2obj %s > test.o |
| 7 | # RUN: cp test.o test2.o |
| 8 | # RUN: icacls test2.o /deny Everyone:(D) |
| 9 | # RUN: icacls . /deny Everyone:(DC) |
| 10 | |
| 11 | # This fails because it cannot replace test2.o |
| 12 | # RUN: not llvm-objcopy test.o test2.o |
| 13 | |
| 14 | # But it doesn't leave any temporary files behind. |
| 15 | # RUN: not ls test2.o.tmp* |
| 16 | |
| 17 | !ELF |
| 18 | FileHeader: |
| 19 | Class: ELFCLASS64 |
| 20 | Data: ELFDATA2LSB |
| 21 | Type: ET_REL |
| 22 | Machine: EM_X86_64 |