2012-04-20 09:24:37 +08:00
|
|
|
# RUN: lld-core -commons-search-archives=false %s | FileCheck -check-prefix=CHK1 %s
|
|
|
|
# RUN: lld-core -commons-search-archives=true %s | FileCheck -check-prefix=CHK2 %s
|
|
|
|
|
|
|
|
#
|
|
|
|
# Tests that -commons_search_archives cause core linker to look for overrides
|
|
|
|
# of tentative definition in archives, and that not using that option
|
|
|
|
# does not search.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-04-20 09:24:37 +08:00
|
|
|
- name: foo
|
|
|
|
type: code
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2012-04-20 09:24:37 +08:00
|
|
|
- name: bar
|
|
|
|
scope: global
|
2012-05-04 07:55:34 +08:00
|
|
|
type: zero-fill
|
2013-01-05 10:22:35 +08:00
|
|
|
merge: as-tentative
|
2012-04-20 09:24:37 +08:00
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
kind: archive
|
|
|
|
members:
|
|
|
|
- name: bar.o
|
|
|
|
content:
|
|
|
|
defined-atoms:
|
|
|
|
- name: bar
|
|
|
|
scope: global
|
|
|
|
type: data
|
2012-05-01 05:20:13 +08:00
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
- name: bar2
|
|
|
|
type: data
|
2012-04-20 09:24:37 +08:00
|
|
|
...
|
|
|
|
|
|
|
|
# CHK1: name: foo
|
|
|
|
# CHK1: name: bar
|
2013-01-05 10:22:35 +08:00
|
|
|
# CHK1: merge: as-tentative
|
2012-04-20 09:24:37 +08:00
|
|
|
# CHK1: ...
|
|
|
|
|
|
|
|
# CHK2: name: foo
|
|
|
|
# CHK2: name: bar
|
2013-01-05 10:22:35 +08:00
|
|
|
# CHK2-NOT: merge: as-tentative
|
2012-04-20 09:24:37 +08:00
|
|
|
# CHK2: name: bar2
|
|
|
|
# CHK2: ...
|