summaryrefslogtreecommitdiffstats
path: root/test/Driver/cl-response-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/cl-response-file.c')
-rw-r--r--test/Driver/cl-response-file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Driver/cl-response-file.c b/test/Driver/cl-response-file.c
new file mode 100644
index 0000000..51ee00b
--- /dev/null
+++ b/test/Driver/cl-response-file.c
@@ -0,0 +1,10 @@
+// Test that we use the Windows tokenizer for clang-cl response files. The
+// trailing backslash before the space should be interpreted as a literal
+// backslash. PR23709
+
+
+
+// RUN: echo '/I%S\Inputs\cl-response-file\ /DFOO=2' > %t.rsp
+// RUN: %clang_cl /c -### @%t.rsp -- %s 2>&1 | FileCheck %s
+
+// CHECK: "-I" "{{.*}}\\Inputs\\cl-response-file\\" "-D" "FOO=2"
OpenPOWER on IntegriCloud