1; Check that changing the output path via prefix-replace works 2; Use of '/' in paths created here make this unsuitable for Windows. 3; RUN: mkdir -p %T/oldpath 4; RUN: opt -module-summary %s -o %T/oldpath/prefix_replace.o 5; Ensure that there is no existing file at the new path, so we properly 6; test the creation of the new file there. 7; RUN: rm -f %T/newpath/prefix_replace.o.thinlto.bc 8 9; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %T/oldpath/prefix_replace.o 10; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%T/oldpath/;%T/newpath/" -thinlto-index %t.index.bc %T/oldpath/prefix_replace.o 11 12; RUN: ls %T/newpath/prefix_replace.o.thinlto.bc 13 14define void @f() { 15entry: 16 ret void 17} 18