zig/deps/lld/test/ELF/icf9.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

21 lines
360 B
ArmAsm

# 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