blob: 7ae7d3563eccf5b8f60347981a63236a4ee95544 [file] [log] [blame]
Teresa Johnsonbbd10b42016-05-17 14:45:30 +00001; Check that changing the output path via prefix-replace works
2; RUN: mkdir -p %T/oldpath
3; RUN: opt -module-summary %s -o %T/oldpath/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/prefix_replace.o.thinlto.bc
7
8; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %T/oldpath/prefix_replace.o
9; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%T/oldpath/:%T/newpath/" -thinlto-index %t.index.bc %T/oldpath/prefix_replace.o
10
11; RUN: ls %T/newpath/prefix_replace.o.thinlto.bc
12
13define void @f() {
14entry:
15 ret void
16}