3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/print-icf.s -o %t1
5 # RUN: ld.lld %t %t1 -o %t2 --icf=all --print-icf-sections | FileCheck %s --match-full-lines --strict-whitespace
6 # RUN: ld.lld %t %t1 -o %t2 --icf=all --no-print-icf-sections --print-icf-sections | FileCheck %s
7 # RUN: ld.lld %t %t1 -o %t2 --icf=all --print-icf-sections --no-print-icf-sections | count 0
10 # CHECK:selected section {{.*}}:(.text.f1)
11 # CHECK-NEXT: removing identical section {{.*}}:(.text.f3)
12 # CHECK-NEXT: removing identical section {{.*}}:(.text.f5)
13 # CHECK-NEXT: removing identical section {{.*}}:(.text.f6)
14 # CHECK:selected section {{.*}}:(.text.f2)
15 # CHECK-NEXT: removing identical section {{.*}}:(.text.f4)
16 # CHECK-NEXT: removing identical section {{.*}}:(.text.f7)
23 .section .text.f1, "ax"
29 .section .text.f2, "ax"
33 .section .text.f3, "ax"
39 .section .text.f4, "ax"
43 .section .text.f5, "ax"