2 // RUN
: split-file
%s
%t.dir
3 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-win32-gnu
%t.dir
/main.s
-o
%t.main.obj
4 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-win32-gnu
%t.dir
/wrap.s
-o
%t.wrap.obj
5 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-win32-gnu
%t.dir
/other.s
-o
%t.other.obj
7 // RUN
: llvm-ar rcs
%t.lib
%t.wrap.obj
%t.other.obj
9 // RUN
: lld-link
-out
:%t.exe
%t.main.obj
-libpath
:%T %t.lib
-entry
:entry
-subsystem
:console
-wrap
:foo
11 // Note
: No real definition of foo exists here
, but that works fine as long
12 // as there
's no actual references to __real_foo.