24 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s5 6# CHECK: selected section {{.*}}:(.text.f1)7# CHECK: removing identical section {{.*}}:(.text.f2)8 9.globl _start, f1, f210_start:11 ret12 13.section .text.f1,"ax"14f1:15 mov $60, %rax16 mov $42, %rdi17 syscall18 19.section .text.f2,"axG",@progbits,foo,comdat20f2:21 mov $60, %rax22 mov $42, %rdi23 syscall24