[ELF] - Add test to check we produce an error if unable to write an empty index file.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 5 Jul 2018 12:12:30 +0000 (12:12 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 5 Jul 2018 12:12:30 +0000 (12:12 +0000)
commit72ceddab7b1dae2e41b078a2e29c082ec63d7d7c
treea6366e4ff0662c4efb1be7a6a052a743014ef37f
parent5f04458a61e716e8f22126f4886e0b2a67bc7a30
[ELF] - Add test to check we produce an error if unable to write an empty index file.

Test case ensures lld generates an error if unable to
write an empty index file for lazy object file that is not added to link.

This covers the following line with a test:
https://github.com/llvm-mirror/lld/blob/master/ELF/LTO.cpp#L206

llvm-svn: 336340
lld/test/ELF/lto/thinlto-index-only.ll