brintos

brintos / llvm-project-archived public Read only

0
0
Text · 705 B · cefbc05 Raw
23 lines · plain
1# REQUIRES: x862 3# We have a code in LLD that prevents fetching the same object from archive file twice.4# This test triggers that code, without it we would fail to link output.5 6# RUN: echo '.globl foo, bar; foo:' | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %tfoo.o7# RUN: echo '.globl foo, bar; bar:' | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %tbar.o8# RUN: rm -f %t.a9# RUN: llvm-ar rcs %t.a %tfoo.o %tbar.o10 11# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o12# RUN: ld.lld %t.a %t.o -o %t13# RUN: llvm-nm %t | FileCheck %s14 15# RUN: ld.lld -shared %t.o -o %t.so16# RUN: ld.lld %t.a %t.so -o %t17# RUN: llvm-nm %t | FileCheck %s18 19# CHECK: T foo20 21_start:22callq foo23