Fangrui Song | b6772b8 | 2018-06-26 22:20:04 +0000 | [diff] [blame] | 1 | // REQUIRES: x86 |
Rui Ueyama | 3ebc71e | 2016-08-03 05:28:02 +0000 | [diff] [blame] | 2 | // Ensure that a mergeable string with size 0 does not cause any issue. |
| 3 | |
Rui Ueyama | 3ebc71e | 2016-08-03 05:28:02 +0000 | [diff] [blame] | 4 | // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o |
Fangrui Song | 40a9f22 | 2018-07-02 17:48:23 +0000 | [diff] [blame] | 5 | // RUN: ld.lld %t.o -o /dev/null |
Rui Ueyama | 3ebc71e | 2016-08-03 05:28:02 +0000 | [diff] [blame] | 6 | |
| 7 | .globl _start, s |
| 8 | .section .rodata.str1.1,"aMS",@progbits,1 |
| 9 | s: |
| 10 | .text |
| 11 | _start: |
| 12 | .quad s |