xref: /llvm-project/lld/test/ELF/icf-none.s (revision 39f3f7c08fb6a2cab8a65f20cb6428754ee577bb)
1# REQUIRES: x86
2
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
5
6.globl _start, f1, f2
7_start:
8  ret
9
10.section .text.f1, "ax"
11f1:
12  mov $60, %rax
13  mov $42, %rdi
14  syscall
15
16.section .text.f2, "ax"
17f2:
18  mov $60, %rax
19  mov $42, %rdi
20  syscall
21