diff options
Diffstat (limited to 'clang/test/Driver/cl-response-file.c')
-rw-r--r-- | clang/test/Driver/cl-response-file.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-response-file.c b/clang/test/Driver/cl-response-file.c new file mode 100644 index 00000000000..c57f34b3157 --- /dev/null +++ b/clang/test/Driver/cl-response-file.c @@ -0,0 +1,13 @@ +// Don't attempt slash switches on msys bash. +// REQUIRES: shell-preserves-root + +// 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: "-D" "FOO=2" "-I" "{{.*}}\\Inputs\\cl-response-file\\" |