blob: 230ab0bfd0de56248e3502bf6d43534da6e4db3e [file] [log] [blame]
# RUN: lld -core %s %p/Inputs/archive-tentdef-search.objtxt | FileCheck -check-prefix=CHK1 %s
# RUN: lld -core --commons-search-archives %s %p/Inputs/archive-tentdef-search.objtxt | 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.
#
--- !native
defined-atoms:
- name: foo
type: code
- name: bar
scope: global
type: zero-fill
merge: as-tentative
...
# CHK1: name: foo
# CHK1: name: bar
# CHK1: merge: as-tentative
# CHK1: ...
# CHK2: name: foo
# CHK2: name: bar
# CHK2-NOT: merge: as-tentative
# CHK2: name: bar2
# CHK2: ...