llvm-project/lld/test/custom-section.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

35 lines
770 B
Plaintext

# RUN: lld-core %s | FileCheck %s
#
# Test that custom sections are preserved
#
---
defined-atoms:
- name: _foo1
scope: global
section-choice: content
- name: _foo2
scope: global
section-choice: custom
section-name: __foozle
- name: _foo3
scope: global
section-choice: custom-required
section-name: __boozle
...
# CHECK: name: _foo1
# CHECK-NOT: section-name:
# CHECK: name: _foo2
# CHECK: section-choice: custom
# CHECK: section-name: __foozle
# CHECK: name: _foo3
# CHECK: section-choice: custom-required
# CHECK: section-name: __boozle
# CHECK: ...