summaryrefslogtreecommitdiff
path: root/test/ELF/reproduce-windows.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/reproduce-windows.s')
-rw-r--r--test/ELF/reproduce-windows.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/reproduce-windows.s b/test/ELF/reproduce-windows.s
new file mode 100644
index 000000000000..464b27098694
--- /dev/null
+++ b/test/ELF/reproduce-windows.s
@@ -0,0 +1,12 @@
+# REQUIRES: x86
+
+# Test that a repro archive always uses / instead of \.
+# RUN: rm -rf %t.dir
+# RUN: mkdir -p %t.dir/build
+# RUN: llvm-mc %s -o %t.dir/build/foo.o -filetype=obj -triple=x86_64-pc-linux
+# RUN: cd %t.dir
+# RUN: not ld.lld build/foo.o --reproduce repro
+# RUN: cpio -t < repro.cpio | FileCheck %s
+
+# CHECK: repro/response.txt
+# CHECK: repro/{{.*}}/build/foo.o