summaryrefslogtreecommitdiff
path: root/test/ELF/driver-access.test
blob: 5209483ae4802186c846013f407541d8e0783392 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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
# RUN: ld.lld %t.o -o %t.exe
# RUN: chmod 755 %t.dir

.globl _start
_start:
  nop