Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / wrap-extract.s
blob708b9c8c2f0111cdc423997f20fb27e5a3ea665e
1 # REQUIRES: x86
2 ## --wrap may trigger archive extraction. Test that local symbols are initialized.
4 # RUN: rm -rf %t && split-file %s %t
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/b.s -o %t/b.o
7 # RUN: ld.lld %t/a.o --start-lib %t/b.o --end-lib -o %t/a --wrap pthread_create -o /dev/null
9 #--- a.s
10 .globl _start
11 _start:
12 .cfi_startproc
13 call pthread_create
14 .cfi_endproc
16 #--- b.s
17 .global __wrap_pthread_create
18 __wrap_pthread_create:
19 .cfi_startproc
20 ret
21 .cfi_endproc