The test is similar to the one used for LLD-ELF. Differential Revision: https://reviews.llvm.org/D99318