[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / icf-none.s
blob86f6a38e596f0ab92c08f9c84ff4d4f27993b0f7
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 --icf=none --print-icf-sections | count 0
6 .globl _start, f1, f2
7 _start:
8 ret
10 .section .text.f1, "ax"
11 f1:
12 mov $60, %rax
13 mov $42, %rdi
14 syscall
16 .section .text.f2, "ax"
17 f2:
18 mov $60, %rax
19 mov $42, %rdi
20 syscall