Teresa Johnson | bbd10b4 | 2016-05-17 14:45:30 +0000 | [diff] [blame^] | 1 | ; 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 | |
| 13 | define void @f() { |
| 14 | entry: |
| 15 | ret void |
| 16 | } |