2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2012-04-20 09:24:37 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Tests that an undefine in one archive can force a load from another archive.
|
|
|
|
#
|
|
|
|
|
2014-01-11 09:07:43 +08:00
|
|
|
--- !native
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-04-20 09:24:37 +08:00
|
|
|
- name: foo
|
|
|
|
type: code
|
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
undefined-atoms:
|
2012-04-20 09:24:37 +08:00
|
|
|
- name: bar1
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2014-01-11 09:07:43 +08:00
|
|
|
--- !archive
|
2013-01-05 10:22:35 +08:00
|
|
|
members:
|
|
|
|
- name: bar1.o
|
2014-01-11 09:07:43 +08:00
|
|
|
content: !native
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
|
|
|
- name: bar1
|
|
|
|
scope: global
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- name: bar1b
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
undefined-atoms:
|
|
|
|
- name: baz1
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- name: bar2.o
|
2014-01-11 09:07:43 +08:00
|
|
|
content: !native
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
|
|
|
- name: bar2
|
|
|
|
scope: global
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- name: bar2b
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2014-01-11 09:07:43 +08:00
|
|
|
--- !archive
|
2013-01-05 10:22:35 +08:00
|
|
|
members:
|
|
|
|
- name: baz1.o
|
2014-01-11 09:07:43 +08:00
|
|
|
content: !native
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
|
|
|
- name: baz1
|
|
|
|
scope: global
|
|
|
|
type: code
|
2014-01-27 11:09:26 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- name: baz1b
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- name: baz2.o
|
2014-01-11 09:07:43 +08:00
|
|
|
content: !native
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
|
|
|
- name: baz2
|
|
|
|
scope: global
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- 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: ...
|