[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / whole-archive-name.s
blob1cf7962e62fd045950f3180501f053bd8afe13b3
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 // RUN: mkdir -p %t.dir
4 // RUN: rm -f %t.dir/liba.a
5 // RUN: llvm-ar rcs %t.dir/liba.a %t.o
6 // RUN: ld.lld -L%t.dir --whole-archive -la -o /dev/null -Map=- | FileCheck %s
8 .globl _start
9 _start:
10 nop
12 // There was a use after free of an archive name.
13 // Valgrind/asan would detect it.
14 // CHECK: liba.a(whole-archive-name.s.tmp.o):(.text)
15 // CHECK-NEXT: _start