Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / reproduce-deplibs.s
blob06c25a2239834564207ea8db0fa37ffdecb80d03
1 # REQUIRES: x86
3 # RUN: rm -rf %t.dir
4 # RUN: mkdir -p %t.dir
5 # RUN: cd %t.dir
6 # RUN: echo ".global foo; foo: ret" | \
7 # RUN: llvm-mc -filetype=obj -triple=x86_64 - -o foo.o
8 # RUN: llvm-ar rc foo.a foo.o
9 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o bar.o
11 # RUN: ld.lld bar.o -o /dev/null --reproduce repro.tar
12 # RUN: tar tf repro.tar | FileCheck -DPATH='%:t.dir' %s
14 # CHECK: [[PATH]]/foo.a
16 .globl _start
17 _start:
18 call foo
19 .section ".deplibs","MS",@llvm_dependent_libraries,1
20 .asciz "foo.a"