[lld] Specify output file explicitly
authorAlexander Kornienko <alexfh@google.com>
Fri, 3 May 2019 23:11:32 +0000 (23:11 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 3 May 2019 23:11:32 +0000 (23:11 +0000)
The test shouldn't try to create `a.out` in the current directory, which can be
read-only (and it is in our test setup).

llvm-svn: 359942

lld/test/ELF/lto/thinlto-index-only.ll

index 3abc18e..4a3764f 100644 (file)
@@ -41,7 +41,7 @@
 ; Ensure LLD generates an empty index for each bitcode file even if all bitcode files are lazy.
 ; RUN: rm -f %t1.o.thinlto.bc
 ; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux-gnu /dev/null -o %tdummy.o
-; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %tdummy.o --start-lib %t1.o --end-lib
+; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %tdummy.o --start-lib %t1.o --end-lib -o %t4
 ; RUN: ls %t1.o.thinlto.bc
 
 ; NM: T f