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

67 lines
1.4 KiB
Plaintext

# RUN: lld-core %s | FileCheck %s
#
# Tests that an undefine in one archive can force a load from another archive.
#
---
atoms:
- name: foo
type: code
- name: bar1
definition: undefined
---
archive:
- name: bar1.o
- atoms:
- name: bar1
scope: global
type: code
- name: bar1b
type: code
- name: baz1
definition: undefined
- name: bar2.o
- atoms:
- name: bar2
scope: global
type: code
- name: bar2b
type: code
---
archive:
- name: baz1.o
- atoms:
- name: baz1
scope: global
type: code
- name: baz1b
type: code
- name: baz2.o
- atoms:
- name: baz2
scope: global
type: code
- name: baz2b
type: code
...
# CHECK: name: foo
# CHECK: name: bar1
# CHECK: name: bar1b
# CHECK-NOT: name: bar2
# CHECK: name: baz1
# CHECK: name: baz1b
# CHECK-NOT: name: baz2
# CHECK: ...