summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/icf-link-order.s
blob: 440971de0f03a08b6be8353418967bf53d0736a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# REQUIRES: x86

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t --icf=all --print-icf-sections | count 0

.section .foo,"a",@progbits,unique,1
foo1:
.byte 1

.section .foo,"a",@progbits,unique,2
foo2:
.byte 2

.section .bar,"ao",@progbits,foo1,unique,1
.byte 3

.section .bar,"ao",@progbits,foo2,unique,2
.byte 3
OpenPOWER on IntegriCloud