2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
3 # RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
5 ## ICF is able to merge sections which relocations referring regular input sections
6 ## or mergeable sections. .eh_frame is represented with a different kind of section,
7 ## here we check that ICF code is able to handle and will not merge sections which
8 ## relocations referring .eh_frame.
12 .section ".eh_frame", "a", @unwind
20 .section .text.foo, "ax"
23 .section .text.bar, "ax"