2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2012-01-10 04:18:15 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test that duplicate c-strings are coalesced
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L0
|
2012-01-10 04:18:15 +08:00
|
|
|
type: c-string
|
2013-01-15 08:17:57 +08:00
|
|
|
merge: by-content
|
2012-01-10 04:18:15 +08:00
|
|
|
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
|
|
|
type: c-string
|
2013-01-15 08:17:57 +08:00
|
|
|
merge: by-content
|
2012-01-10 04:18:15 +08:00
|
|
|
content: [ 74, 68, 65, 72, 65, 00 ]
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L2
|
2012-01-10 04:18:15 +08:00
|
|
|
type: c-string
|
2013-01-15 08:17:57 +08:00
|
|
|
merge: by-content
|
2012-01-10 04:18:15 +08:00
|
|
|
content: [ 68, 65, 6c, 6c, 6f, 00 ]
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- ref-name: L2
|
2012-01-10 04:18:15 +08:00
|
|
|
type: c-string
|
2013-01-15 08:17:57 +08:00
|
|
|
merge: by-content
|
2012-01-10 04:18:15 +08:00
|
|
|
content: [ 74, 68, 65, 72, 65, 00 ]
|
|
|
|
...
|
|
|
|
|
2013-01-15 08:17:57 +08:00
|
|
|
# CHECK-NOT: name:
|
2012-01-10 04:18:15 +08:00
|
|
|
# CHECK: type: c-string
|
|
|
|
# CHECK: content: [ 68, 65, 6C, 6C, 6F, 00 ]
|
2013-01-15 08:17:57 +08:00
|
|
|
# CHECK: merge: by-content
|
2012-01-10 04:18:15 +08:00
|
|
|
# CHECK: type: c-string
|
|
|
|
# CHECK: content: [ 74, 68, 65, 72, 65, 00 ]
|
2013-01-15 08:17:57 +08:00
|
|
|
# CHECK: merge: by-content
|
2012-01-10 04:18:15 +08:00
|
|
|
# CHECK: ...
|
2013-01-15 08:17:57 +08:00
|
|
|
|
|
|
|
|