diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2016-11-15 21:36:35 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-11-15 21:36:35 +0000 |
| commit | bc9a574657acea3740e1765a9144a95aee3dca95 (patch) | |
| tree | 78e02293031584948def6e6b3fe85fe61d24e7a8 /llvm/test | |
| parent | d5d761663efbdda724f8c6a2c8ef734808b93f66 (diff) | |
| download | bcm5719-llvm-bc9a574657acea3740e1765a9144a95aee3dca95.tar.gz bcm5719-llvm-bc9a574657acea3740e1765a9144a95aee3dca95.zip | |
Object: replace backslashes with slashes in embedded relative thin archive paths on Windows.
This makes these thin archives portable between *nix and Windows.
Differential Revision: https://reviews.llvm.org/D26696
llvm-svn: 287038
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Object/archive-thin-paths.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Object/archive-thin-paths.test b/llvm/test/Object/archive-thin-paths.test new file mode 100644 index 00000000000..21788b47acc --- /dev/null +++ b/llvm/test/Object/archive-thin-paths.test @@ -0,0 +1,9 @@ +REQUIRES: system-windows + +RUN: cd %T +RUN: mkdir -p archive-thin-paths.dir +RUN: echo foo > archive-thin-paths.dir/foo.o + +RUN: rm -f archive-thin-paths.a +RUN: llvm-ar rcsT archive-thin-paths.a archive-thin-paths.dir\foo.o +RUN: grep archive-thin-paths.dir/foo.o archive-thin-paths.a |

