[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / bad-archive.s
blobba6d674c2fa656169ae2146988bea8d3ac52bce9
1 // REQUIRES: x86
3 // Check bad archive error reporting with --whole-archive
4 // and without it.
6 // RUN: echo "!<arch>" > %t.a
7 // RUN: echo "foo" >> %t.a
8 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
9 // RUN: not ld.lld %t.o %t.a -o /dev/null 2>&1 | FileCheck -DFILE=%t.a %s
10 // RUN: not ld.lld %t.o --whole-archive %t.a -o /dev/null 2>&1 | FileCheck -DFILE=%t.a %s
11 // CHECK: error: [[FILE]]: failed to parse archive: truncated or malformed archive (remaining size of archive too small for next archive member header at offset 8)
13 .globl _start
14 _start: