[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / icf.s
blob7c74458232aad0d02bc51319d2c0ba1b3e0f1bb8
1 # REQUIRES: x86
3 # RUN: echo "foo = 1; bar = 2;" > %t.script
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
5 # RUN: ld.lld %t.o %t.script -o %t --icf=all --print-icf-sections | count 0
7 .section .text.foo,"ax",@progbits
8 jmp foo
10 .section .text.bar,"ax",@progbits
11 jmp bar