2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2012-04-20 09:24:37 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Tests archives in YAML. Tests that an undefined in a regular file will load
|
|
|
|
# all atoms in select archive members.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-04-20 09:24:37 +08:00
|
|
|
- name: foo
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
undefined-atoms:
|
2012-04-20 09:24:37 +08:00
|
|
|
- name: bar
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
kind: archive
|
|
|
|
members:
|
|
|
|
- name: bar.o
|
|
|
|
content:
|
|
|
|
defined-atoms:
|
|
|
|
- name: bar
|
|
|
|
scope: global
|
|
|
|
type: code
|
|
|
|
|
|
|
|
- name: bar2
|
|
|
|
type: code
|
|
|
|
|
|
|
|
- name: baz.o
|
|
|
|
content:
|
|
|
|
defined-atoms:
|
|
|
|
- name: baz
|
|
|
|
scope: global
|
|
|
|
type: code
|
|
|
|
|
|
|
|
- name: baz2
|
|
|
|
type: code
|
2012-04-20 09:24:37 +08:00
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: name: foo
|
2013-01-05 10:22:35 +08:00
|
|
|
# CHECK-NOT: undefined-atoms:
|
2012-04-20 09:24:37 +08:00
|
|
|
# CHECK: name: bar
|
|
|
|
# CHECK: name: bar2
|
|
|
|
# CHECK-NOT: name: baz
|
|
|
|
# CHECK: ...
|