1; Check that changing the output path via thinlto-prefix-replace works 2; RUN: mkdir -p %t/oldpath 3; RUN: opt -module-summary %s -o %t/oldpath/thinlto_prefix_replace.o 4; Ensure that there is no existing file at the new path, so we properly 5; test the creation of the new file there. 6; RUN: rm -f %t/newpath/thinlto_prefix_replace.o.thinlto.bc 7; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ 8; RUN: --plugin-opt=thinlto \ 9; RUN: --plugin-opt=thinlto-index-only \ 10; RUN: --plugin-opt=thinlto-prefix-replace="%t/oldpath/;%t/newpath/" \ 11; RUN: -shared %t/oldpath/thinlto_prefix_replace.o -o %t/thinlto_prefix_replace 12; RUN: ls %t/newpath/thinlto_prefix_replace.o.thinlto.bc 13 14target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 15 16define void @f() { 17entry: 18 ret void 19} 20