diff options
Diffstat (limited to 'test/old-elf/weaksym.test')
| -rw-r--r-- | test/old-elf/weaksym.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old-elf/weaksym.test b/test/old-elf/weaksym.test new file mode 100644 index 000000000000..59d997edc64c --- /dev/null +++ b/test/old-elf/weaksym.test @@ -0,0 +1,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 |
