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