diff options
author | Brad King <brad.king@kitware.com> | 2018-03-26 15:55:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-27 11:40:54 (GMT) |
commit | 7fe580a36253281784dda9c35798693350e24859 (patch) | |
tree | ed860d357022a6c8db6f1daead9e27e7970ec1b9 /Tests/CompileFeatures/default_dialect.cpp | |
parent | 1b328e09a33e61293635c7ddb9bcff986ae8d1e7 (diff) | |
download | CMake-7fe580a36253281784dda9c35798693350e24859.zip CMake-7fe580a36253281784dda9c35798693350e24859.tar.gz CMake-7fe580a36253281784dda9c35798693350e24859.tar.bz2 |
Features: Add infrastructure for C++ 20 language standard
Issue: #17849
Diffstat (limited to 'Tests/CompileFeatures/default_dialect.cpp')
-rw-r--r-- | Tests/CompileFeatures/default_dialect.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/default_dialect.cpp b/Tests/CompileFeatures/default_dialect.cpp index 0de1125..7ddcfe7 100644 --- a/Tests/CompileFeatures/default_dialect.cpp +++ b/Tests/CompileFeatures/default_dialect.cpp @@ -8,7 +8,11 @@ struct Outputter; #define CXX_STD __cplusplus #endif -#if DEFAULT_CXX17 +#if DEFAULT_CXX20 +#if CXX_STD <= 201703L +Outputter<CXX_STD> o; +#endif +#elif DEFAULT_CXX17 #if CXX_STD <= 201402L Outputter<CXX_STD> o; #endif |