11 lines · plain
1# REQUIRES: x86, system-linux2 3# Test that we don't erroneously replace \ with / on UNIX, as it's4# legal for a filename to contain backslashes.5# RUN: rm -rf %t.dir && mkdir -p %t.dir6# RUN: llvm-mc %s -o %t.dir/foo\\.o -filetype=obj -triple=x86_64-pc-linux7# RUN: ld.lld %t.dir/foo\\.o --reproduce %t.dir/repro.tar -o /dev/null8# RUN: tar tf %t.dir/repro.tar | FileCheck %s9 10# CHECK: repro/{{.*}}/foo\{{[\]?}}.o11