[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / reproduce-backslash.s
blobf64ece5c350f70b60ca3f545dcc21167ab61bf8b
1 # REQUIRES: x86, system-linux
3 # Test that we don't erroneously replace \ with / on UNIX, as it's
4 # legal for a filename to contain backslashes.
5 # RUN: rm -rf %t.dir && mkdir -p %t.dir
6 # RUN: llvm-mc %s -o %t.dir/foo\\.o -filetype=obj -triple=x86_64-pc-linux
7 # RUN: ld.lld %t.dir/foo\\.o --reproduce %t.dir/repro.tar -o /dev/null
8 # RUN: tar tf %t.dir/repro.tar | FileCheck %s
10 # CHECK: repro/{{.*}}/foo\{{[\]?}}.o