[clang][driver] Fix test fail on Mac after fe082124
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>
Thu, 2 Feb 2023 18:40:26 +0000 (13:40 -0500)
committerMariya Podchishchaeva <mariya.podchishchaeva@intel.com>
Thu, 2 Feb 2023 18:44:53 +0000 (13:44 -0500)
`--` should be added before input.

clang/test/Driver/x-args.c

index daaa47b..17bb5d9 100644 (file)
@@ -6,7 +6,6 @@
 // RUN: %clang -fsyntax-only %s -xc %s -xc++ -fsyntax-only 2>&1 | FileCheck %s
 // CHECK: '-x c++' after last input file has no effect
 
-// RUN: not %clang_cl /WX /clang:-xc /clang:-E /clang:-dM %s 2>&1 | FileCheck --implicit-check-not="error:" -check-prefix=CL %s
-// RUN: not %clang_cl /WX /clang:-E /clang:-dM %s /clang:-xc 2>&1 | FileCheck --implicit-check-not="error:" -check-prefix=CL %s
-// RUN: not %clang_cl /TC /WX /clang:-xc /clang:-E /clang:-dM %s 2>&1 | FileCheck --implicit-check-not="error:" -check-prefix=CL %s
+// RUN: not %clang_cl /WX /clang:-xc /clang:-E /clang:-dM -- %s 2>&1 | FileCheck --implicit-check-not="error:" -check-prefix=CL %s
+// RUN: not %clang_cl /TC /WX /clang:-xc /clang:-E /clang:-dM -- %s 2>&1 | FileCheck --implicit-check-not="error:" -check-prefix=CL %s
 // CL: error: unsupported option '-x c'; did you mean '/TC' or '/TP'?