diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-01-13 22:24:42 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-01-13 22:24:42 +0000 |
| commit | 859422a867320f122ad15fe1dd1d9c5107f63639 (patch) | |
| tree | b7afa73e3b5ea377210cac5e63192c2b1f4d04f9 /clang/test/Driver/cl-fallback.c | |
| parent | 0ad27923d552a17834a4528a54718e22f3b678e8 (diff) | |
| download | bcm5719-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.c | 5 |
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" |

