1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# RUN: lld -core %s | FileCheck %s
#
# Test that duplicate c-strings are coalesced
#
---
defined-atoms:
- ref-name: L0
type: c-string
merge: by-content
content: [ 68, 65, 6c, 6c, 6f, 00 ]
- ref-name: L1
type: c-string
merge: by-content
content: [ 74, 68, 65, 72, 65, 00 ]
---
defined-atoms:
- ref-name: L2
type: c-string
merge: by-content
content: [ 68, 65, 6c, 6c, 6f, 00 ]
---
defined-atoms:
- ref-name: L2
type: c-string
merge: by-content
content: [ 74, 68, 65, 72, 65, 00 ]
...
# CHECK-NOT: name:
# CHECK: type: c-string
# CHECK: content: [ 68, 65, 6C, 6C, 6F, 00 ]
# CHECK: merge: by-content
# CHECK: type: c-string
# CHECK: content: [ 74, 68, 65, 72, 65, 00 ]
# CHECK: merge: by-content
# CHECK: ...
|