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 13target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 14 15define void @f() { 16entry: 17 ret void 18} 19