llvm-project/lld/test/archive-basic.objtxt

43 lines
879 B
Plaintext
Raw Normal View History

# 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
- name: bar
definition: undefined
---
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
...
# CHECK: name: foo
# CHECK: name: bar
# CHECK-NOT: definition: undefined
# CHECK: name: bar2
# CHECK-NOT: name: baz
# CHECK: ...