Files
clang-p2996/lld/test/cstring-coalesce.objtxt
Nick Kledzik 6b079f5e2f Removes files for separate ReaderYAML.cpp and WriterYAML.cpp
and adds a new file ReaderWriterYAML.cpp that uses YAML I/O.

Lots of tweaks to test suite for slightly different YAML encoding.

llvm-svn: 171592
2013-01-05 02:22:35 +00:00

38 lines
959 B
Plaintext

# RUN: lld-core %s | FileCheck %s
#
# Test that duplicate c-strings are coalesced
#
---
defined-atoms:
- ref-name: L0
scope: hidden
type: c-string
content: [ 68, 65, 6c, 6c, 6f, 00 ]
- ref-name: L1
scope: hidden
type: c-string
content: [ 74, 68, 65, 72, 65, 00 ]
---
defined-atoms:
- ref-name: L2
scope: hidden
type: c-string
content: [ 68, 65, 6c, 6c, 6f, 00 ]
---
defined-atoms:
- ref-name: L2
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: ...