summaryrefslogtreecommitdiff
path: root/test/ELF/icf9.s
blob: c5a532915cc7e0aeb5eda052775628d443053c1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# REQUIRES: x86

### Make sure that we do not merge data.
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: ld.lld %t -o %t2 --icf=all --verbose | FileCheck %s

# CHECK-NOT: selected .data.d1
# CHECK-NOT: selected .data.d2

.globl _start, d1, d2
_start:
  ret

.section .data.f1, "a"
d1:
  .byte 1

.section .data.f2, "a"
d2:
  .byte 1