Mercurial > hg > CbC > CbC_llvm
diff lld/test/ELF/reproduce-backslash.s @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lld/test/ELF/reproduce-backslash.s Thu Feb 13 15:10:13 2020 +0900 @@ -0,0 +1,10 @@ +# REQUIRES: x86, system-linux + +# Test that we don't erroneously replace \ with / on UNIX, as it's +# legal for a filename to contain backslashes. +# RUN: rm -rf %t.dir && mkdir -p %t.dir +# RUN: llvm-mc %s -o %t.dir/foo\\.o -filetype=obj -triple=x86_64-pc-linux +# RUN: ld.lld %t.dir/foo\\.o --reproduce %t.dir/repro.tar -o /dev/null +# RUN: tar tf %t.dir/repro.tar | FileCheck %s + +# CHECK: repro/{{.*}}/foo\{{[\]?}}.o