12 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/weak-undef-lazy.s -o %t2.o4# RUN: rm -f %t2.a5# RUN: llvm-ar rc %t2.a %t2.o6# RUN: ld.lld %t.o %t2.a -o /dev/null --export-dynamic7 8 .global _start9_start:10 .weak foobar11 .quad foobar12