19 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge-sec.s -o %t25# RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck %s6 7# CHECK: selected section {{.*}}:(.text.f1)8# CHECK: removing identical section {{.*}}:(.text.f2)9 10.section .rodata.str,"aMS",@progbits,111.asciz "foo"12.asciz "string 1"13.asciz "string 2"14 15.section .text.f1,"ax"16.globl f117f1:18.quad .rodata.str19