2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2012-01-05 07:58:17 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test that custom sections are preserved
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-01-05 07:58:17 +08:00
|
|
|
- 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
|
2014-01-27 11:09:26 +08:00
|
|
|
# CHECK-NOT: section-name:
|
2012-01-05 07:58:17 +08:00
|
|
|
# CHECK: name: _foo2
|
|
|
|
# CHECK: section-choice: custom
|
|
|
|
# CHECK: section-name: __foozle
|
|
|
|
# CHECK: name: _foo3
|
|
|
|
# CHECK: section-choice: custom-required
|
|
|
|
# CHECK: section-name: __boozle
|
|
|
|
# CHECK: ...
|