summaryrefslogtreecommitdiff
path: root/test/ELF/reproduce-backslash.s
blob: 849c8f8fb3ddbe61d19797cd751f7398ad40a466 (plain) (blame)
1
2
3
4
5
6
7
8
9
# REQUIRES: x86, cpio, shell

# Test that we don't erroneously replace \ with / on UNIX, as it's
# legal for a filename to contain backslashes.
# RUN: llvm-mc %s -o foo\\.o -filetype=obj -triple=x86_64-pc-linux
# RUN: ld.lld foo\\.o --reproduce repro
# RUN: cpio -it < repro.cpio | FileCheck %s

# CHECK: repro/{{.*}}/foo\.o