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