[lld-macho][test] Add missing coverage for archive/dylib resolution after D115092
authorFangrui Song <i@maskray.me>
Tue, 11 Jan 2022 03:36:24 +0000 (19:36 -0800)
committerFangrui Song <i@maskray.me>
Tue, 11 Jan 2022 03:36:24 +0000 (19:36 -0800)
commit2968467e3990f89d49f312f1a5576b229deae9bd
tree97abb27390bbdd464b3eff24529e508ac18d7e04
parent9ea772ff81eb421ae521345b33d844c892a6725c
[lld-macho][test] Add missing coverage for archive/dylib resolution after D115092

When `file->fetch(sym)` is replaced with a no-op, no test fails.

The new test catches the case.

Reviewed By: #lld-macho, oontvoo

Differential Revision: https://reviews.llvm.org/D116916
lld/test/MachO/weak-definition-direct-fetch.s