[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / icf4.s
blobff13a7ebff3da864600ef513766ddeb1ea4e8490
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | count 0
6 .globl _start, f1, f2
7 _start:
8 ret
10 .section .text.f1, "ax"
11 f1:
12 mov $1, %rax
14 .section .text.f2, "ax"
15 f2:
16 mov $0, %rax