brintos

brintos / llvm-project-archived public Read only

0
0
Text · 531 B · 708b9c8 Raw
22 lines · plain
1# REQUIRES: x862## --wrap may trigger archive extraction. Test that local symbols are initialized.3 4# RUN: rm -rf %t && split-file %s %t5# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o6# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/b.s -o %t/b.o7# RUN: ld.lld %t/a.o --start-lib %t/b.o --end-lib -o %t/a --wrap pthread_create -o /dev/null8 9#--- a.s10.globl _start11_start:12.cfi_startproc13  call pthread_create14.cfi_endproc15 16#--- b.s17.global __wrap_pthread_create18__wrap_pthread_create:19.cfi_startproc20  ret21.cfi_endproc22