2012-01-10 04:18:15 +08:00
|
|
|
# RUN: lld-core %s | FileCheck %s
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test that duplicate c-strings are coalesced
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L0
|
2012-01-10 04:18:15 +08:00
|
|
|
scope: hidden
|
|
|
|
type: c-string
|
|
|
|
content: [ 68, 65, 6c, 6c, 6f, 00 ]
|
|
|
|
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L1
|
2012-01-10 04:18:15 +08:00
|
|
|
scope: hidden
|
|
|
|
type: c-string
|
|
|
|
content: [ 74, 68, 65, 72, 65, 00 ]
|
|
|
|
---
|
|
|
|
atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L2
|
2012-01-10 04:18:15 +08:00
|
|
|
scope: hidden
|
|
|
|
type: c-string
|
|
|
|
content: [ 68, 65, 6c, 6c, 6f, 00 ]
|
|
|
|
---
|
|
|
|
atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L2
|
2012-01-10 04:18:15 +08:00
|
|
|
scope: hidden
|
|
|
|
type: c-string
|
|
|
|
content: [ 74, 68, 65, 72, 65, 00 ]
|
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: type: c-string
|
|
|
|
# CHECK: content: [ 68, 65, 6C, 6C, 6F, 00 ]
|
|
|
|
# CHECK: type: c-string
|
|
|
|
# CHECK: content: [ 74, 68, 65, 72, 65, 00 ]
|
|
|
|
# CHECK-NOT: name:
|
|
|
|
# CHECK: ...
|