2012-04-20 09:24:37 +08:00
|
|
|
# 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
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2012-04-20 09:24:37 +08:00
|
|
|
---
|
2012-05-01 05:20:13 +08:00
|
|
|
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
|
|
|
|
|
2012-04-20 09:24:37 +08:00
|
|
|
---
|
2012-05-01 05:20:13 +08:00
|
|
|
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
|
2012-04-20 09:24:37 +08:00
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: name: foo
|
|
|
|
# CHECK: name: bar1
|
|
|
|
# CHECK: name: bar1b
|
|
|
|
# CHECK-NOT: name: bar2
|
|
|
|
# CHECK: name: baz1
|
|
|
|
# CHECK: name: baz1b
|
|
|
|
# CHECK-NOT: name: baz2
|
|
|
|
# CHECK: ...
|