]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/icf-none.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / icf-none.s
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 --verbose 2>&1 | FileCheck %s
5
6 # CHECK-NOT: selected section '.text.f1'
7
8 .globl _start, f1, f2
9 _start:
10   ret
11
12 .section .text.f1, "ax"
13 f1:
14   mov $60, %rax
15   mov $42, %rdi
16   syscall
17
18 .section .text.f2, "ax"
19 f2:
20   mov $60, %rax
21   mov $42, %rdi
22   syscall