1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
4# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s
5
6# Check that ICF does not merge 2 sections which relocations
7# differs in addend only.
8
9# CHECK-NOT: selected
10
11.section .text
12.globl _start
13_start:
14  ret
15
16.section .text.foo, "ax"
17.quad _start + 1
18
19.section .text.bar, "ax"
20.quad _start + 2
21