2 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-win32-gnu
%s
-o
%t.obj
4 // RUN
: not lld-link
-lldmingw
-out
:%t.exe
%t.obj
-entry
:entry
-subsystem
:console
-wrap
:foo
2>&1 | FileCheck
%s
6 // Check that we error out properly with an undefined symbol
, if
7 // __real_foo is referenced
and missing
, even if the
-lldmingw flag is set
8 // (which otherwise tolerates certain cases of references to missing
9 // sections
, to tolerate certain GCC pecularities
).
11 // CHECK
: error
: undefined symbol
: foo