1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute2.s -o %t2
5# RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck -allow-empty %s
6
7## Test we do not crash and do not fold sections which relocations referring to
8## absolute symbols with a different values.
9# CHECK-NOT: selected
10
11.globl _start, f1, f2
12_start:
13  ret
14
15.section .text.f1, "ax"
16f1:
17  .byte a1
18
19.section .text.f2, "ax"
20f2:
21  .byte a2
22