mstorsjo added a comment. @martell I took the liberty to improve the tests - if you squash http://martin.st/temp/lld-mingw-tests.patch into it, it should test most things that are added in this patch, as suggested by Rui. Repository: rL LLVM https://reviews.llvm.org/D33880