3 // This file contains two functions. They are themselves identical
,
4 // but because they have relocations against different data sections
,
5 // they are
not mergeable.
7 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-unknown-linux
%s
-o
%t1
8 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-unknown-linux \
9 // RUN
: %p
/Inputs
/icf-non-mergeable.s
-o
%t2
11 // RUN
: ld.lld
%t1
%t2
-o
/dev
/null
--icf
=all
--print-icf-sections | count
0
13 .globl _start, f1, f2, d1, d2
17 .section .text.f1, "ax"
22 .section .text.f2, "ax"