diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-20 13:10:44 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-04-20 13:10:44 +0000 |
commit | dd0bb268f0be46ad824c7f2ea6800514a4ee9862 (patch) | |
tree | fce30c6343a1b11355dc6b1516433dcfe4e6f7de /clang/test/Driver/cl-options.c | |
parent | 8da9c2a2f760361fe0af80af96572dc3803697da (diff) | |
download | bcm5719-llvm-dd0bb268f0be46ad824c7f2ea6800514a4ee9862.tar.gz bcm5719-llvm-dd0bb268f0be46ad824c7f2ea6800514a4ee9862.zip |
clang-cl: Accept (and ignore) /Zc:__cplusplus.
See https://blogs.msdn.microsoft.com/vcblog/2018/04/09/msvc-now-correctly-reports-__cplusplus/
clang-cl already sets __cplusplus to the correct value, so we can just ignore this flag.
Also add test coverage for a few more accepted-but-ignored flags.
https://reviews.llvm.org/D45877
llvm-svn: 330427
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 21d826473bf..4b4e2f0883c 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -346,6 +346,7 @@ // RUN: /GS- \ // RUN: /kernel- \ // RUN: /nologo \ +// RUN: /Og \ // RUN: /openmp- \ // RUN: /permissive- \ // RUN: /RTC1 \ @@ -357,6 +358,14 @@ // RUN: /volatile:iso \ // RUN: /w12345 \ // RUN: /wd1234 \ +// RUN: /Zc:__cplusplus \ +// RUN: /Zc:auto \ +// RUN: /Zc:forScope \ +// RUN: /Zc:inline \ +// RUN: /Zc:rvalueCast \ +// RUN: /Zc:ternary \ +// RUN: /Zc:wchar_t \ +// RUN: /Zm \ // RUN: /Zo \ // RUN: /Zo- \ // RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s |