Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / as-needed-lazy.s
blobe892b9980aade9d7bbd79cc02328e7a2a02dc54c
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/as-needed-lazy.s -o %t2.o
4 # RUN: ld.lld %t2.o -o %t2.so -shared
5 # RUN: rm -f %t2.a
6 # RUN: llvm-ar rc %t2.a %t2.o
7 # RUN: ld.lld %t1.o %t2.a --as-needed %t2.so -o %t
8 # RUN: llvm-readobj -d %t | FileCheck %s
10 # CHECK-NOT: NEEDED
12 .global _start
13 _start:
14 nop