[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / discard-merge-locals.s
blobd720ee884772c4377614f0f4d88ce6a6e85cb08e
1 # REQUIRES: x86
3 ## Test that the .L symbol in a SHF_MERGE section is omitted.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
6 # RUN: ld.lld %t.o -o %t
7 # RUN: llvm-readelf -s %t | FileCheck /dev/null --implicit-check-not=.L.str
9 lea .L.str(%rip), %rdi
10 lea local(%rip), %rdi
12 .section .rodata.str1.1,"aMS",@progbits,1
13 .L.str:
14 local: