xref: /llvm-project/lld/test/ELF/lto/resolution-err.ll (revision e165bea1d4ec2de96ee0548cece79d71a75ce8f8)
1; UNSUPPORTED: system-windows
2; REQUIRES: shell, non-root-user
3; RUN: llvm-as %s -o %t.bc
4; RUN: touch %t.resolution.txt
5; RUN: chmod u-w %t.resolution.txt
6; RUN: not ld.lld -save-temps %t.bc -o %t 2>&1 | FileCheck -DMSG=%errc_EACCES %s
7; RUN: rm -f %t.resolution.txt
8
9; CHECK: error: [[MSG]]
10
11target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12target triple = "x86_64-unknown-linux-gnu"
13
14define void @_start() {
15  ret void
16}
17