zig/deps/lld/test/ELF/driver-access.test

16 lines
346 B
Plaintext
Raw Normal View History

# REQUIRES: x86, shell
# Make sure that LLD works even if the current directory is not writable.
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t.exe
# RUN: mkdir -p %t.dir
# RUN: chmod 100 %t.dir
# RUN: cd %t.dir
2018-01-17 14:29:21 -08:00
# RUN: ld.lld %t.o -o %t.exe -M
# RUN: chmod 755 %t.dir
.globl _start
_start:
nop