summaryrefslogtreecommitdiffstats
path: root/lld/test/old-elf/weaksym.test
blob: 59d997edc64caae2e3d2eb70c17c36f6709a5c04 (plain)
1
2
3
4
5
6
7
# Tests that a weak reference remains a weak reference,
# even if a shared library defines the symbol weak as well.

RUN: lld -flavor old-gnu  -target x86_64 -shared %p/Inputs/weaksym.o -L%p/Inputs -lweaksym -o %t1
RUN: llvm-nm -n %t1 | FileCheck -check-prefix CHECKSYMS %s

CHECKSYMS: w weaksym
OpenPOWER on IntegriCloud