2 # RUN: split-file %s %t
3 # RUN: cp %p/Inputs/std64.lib %t/std64.lib
4 # RUN: sed -e "s|REPLACE|%/t/std64.lib|g" %t/overlay.yaml.in > %t/overlay.yaml
6 # RUN: lld-link %S/Inputs/hello64.obj /libpath:/noexist /out:%t.exe /entry:main /defaultlib:notstd64 /vfsoverlay:%t/overlay.yaml
8 # RUN: not lld-link %S/Inputs/hello64.obj /libpath:/noexist /out:%t.exe /entry:main /defaultlib:notstd64 /vfsoverlay:noexist 2>&1 \
10 # CHECK: error: {{[Nn]}}o such file or directory
12 # RUN: echo "invalid yaml" > %t/badoverlay.yaml
13 # RUN: not lld-link %S/Inputs/hello64.obj /libpath:/noexist /out:%t.exe /entry:main /defaultlib:notstd64 /vfsoverlay:%t/badoverlay.yaml 2>&1 \
14 # RUN: | FileCheck %s --check-prefix=BAD-OVERLAY
15 # BAD-OVERLAY: error: Invalid vfs overlay
26 'name': 'notstd64.lib',
28 'external-contents': 'REPLACE'