summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-fallback.c
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-01-13 22:24:42 +0000
committerHans Wennborg <hans@hanshq.net>2014-01-13 22:24:42 +0000
commit859422a867320f122ad15fe1dd1d9c5107f63639 (patch)
treeb7afa73e3b5ea377210cac5e63192c2b1f4d04f9 /clang/test/Driver/cl-fallback.c
parent0ad27923d552a17834a4528a54718e22f3b678e8 (diff)
downloadbcm5719-llvm-859422a867320f122ad15fe1dd1d9c5107f63639.tar.gz
bcm5719-llvm-859422a867320f122ad15fe1dd1d9c5107f63639.zip
clang-cl: Ignore /fallback when not actually compiling (PR18456)
For example, don't fall back in /P (preprocess) mode. llvm-svn: 199153
Diffstat (limited to 'clang/test/Driver/cl-fallback.c')
-rw-r--r--clang/test/Driver/cl-fallback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-fallback.c b/clang/test/Driver/cl-fallback.c
index 2433072a025..9b33b0c0a74 100644
--- a/clang/test/Driver/cl-fallback.c
+++ b/clang/test/Driver/cl-fallback.c
@@ -39,3 +39,8 @@
// RUN: %clang_cl /fallback /Ox -### -- %s 2>&1 | FileCheck -check-prefix=Ox %s
// Ox: cl.exe
// Ox: "/Ox"
+
+// Only fall back when actually compiling, not for e.g. /P (preprocess).
+// RUN: %clang_cl /fallback /P -### -- %s 2>&1 | FileCheck -check-prefix=P %s
+// P-NOT: ||
+// P-NOT: "cl.exe"
OpenPOWER on IntegriCloud