2 # This test is to make sure that we can handle implicit addends properly.
4 # RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t
5 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck %s
7 # CHECK: selected section {{.*}}:(.text.f1)
8 # CHECK: removing identical section {{.*}}:(.text.f2)
9 # CHECK-NOT: removing identical section {{.*}}:(.text.f3)
11 .globl _start, f1, f2, f3
15 .section .text.f1, "ax"
19 .section .text.f2, "ax"
23 .section .text.f3, "ax"