dmd/test/fail_compilation/invalid_lib.d
Nicholas Wilson 7d1f4440f8
Produce MS Coff by default when targetting windows (#13110)
* Produce MS Coff by default when targetting windows

This rebases #12825 but doesn't attempt to rename phobos libraries and doesn't change the build infra where possible(and doesn't have a large diff in `link.d`). See if this fixes the CI issues.

* remove OMF piplines

* Update glue.d

* Update target.d

* Update target.d

* Update frontend.h
2022-01-21 10:09:52 +02:00

15 lines
524 B
D

/*
REQUIRED_ARGS: -lib
REQUIRED_ARGS(linux freebsd osx openbsd) fail_compilation/extra-files/fake.a
REQUIRED_ARGS(windows) -m32 fail_compilation/extra-files/fake.lib
Use a regex because the path is really strange on Azure (OMF_32, 64):
{{RESULTS_DIR}}\fail_compilation\{{RESULTS_DIR}}\fail_compilation\invalid_omf_0.obj
TEST_OUTPUT:
----
$r:.*$: Error: corrupt $?:windows=MS Coff|osx=Mach|ELF$ object module $?:windows=fail_compilation\extra-files\fake.lib|fail_compilation/extra-files/fake.a$ $n$
----
*/
void main() {}