# 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

# 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
# RUN: llvm-readelf -S -W %t2 | FileCheck --check-prefix=SEC %s

# SEC:  .rodata      PROGBITS  0000000000200120 000120 000002 00 A 0 0 1

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

.globl _start, d1, d2
_start:
  ret

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

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

Fix test to test what it intended to test.
Fix test to test what it intended to test.

The test was added to test that we don't merge read only data
sections, but the sections in the test were rw.

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@320339 91177308-0d34-0410-b5e6-96231b3b80d8
