]> granicus.if.org Git - clang/commitdiff
Protect a clang-cl file path with --.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 30 May 2018 04:08:34 +0000 (04:08 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 30 May 2018 04:08:34 +0000 (04:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333501 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/complete-member-pointers.cpp

index 6fde2e7a0ef66b51af94f2020a2f4d37f7a7743c..e64b2546e4db3ce49ece3c851d835d29cc219f02 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clangxx -### -c %s -o %t.o -target x86_64-unknown-linux 2>&1 | FileCheck --check-prefix=NOFLAG %s
 // RUN: %clangxx -### -c %s -o %t.o -target x86_64-unknown-linux -fcomplete-member-pointers 2>&1 | FileCheck %s
 // RUN: %clangxx -### -c %s -o %t.o -target x86_64-unknown-linux -fcomplete-member-pointers -fno-complete-member-pointers 2>&1 | FileCheck --check-prefix=NOFLAG %s
-// RUN: %clang_cl -### /c %s /Fo%t.o -target x86_64-pc-win32 -fcomplete-member-pointers 2>&1 | FileCheck %s
+// RUN: %clang_cl -### /c /Fo%t.o -target x86_64-pc-win32 -fcomplete-member-pointers -- %s 2>&1 | FileCheck %s
 
 // CHECK: "-fcomplete-member-pointers"
 // NOFLAG-NOT: "-fcomplete-member-pointers"