diff options
author | Brad King <brad.king@kitware.com> | 2024-04-02 20:06:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-05 11:38:58 (GMT) |
commit | c37e2790145d0b304f2072bee3d5206ecb12eafc (patch) | |
tree | 2219c186e0893523bcbabcea12f471f77330a55c /Tests/CompileFeatures/cxx_std_23.cpp | |
parent | 58cd9ee03c42531de652d7687e17eead8b42de0b (diff) | |
download | CMake-c37e2790145d0b304f2072bee3d5206ecb12eafc.zip CMake-c37e2790145d0b304f2072bee3d5206ecb12eafc.tar.gz CMake-c37e2790145d0b304f2072bee3d5206ecb12eafc.tar.bz2 |
Tests/CompileFeatures: Cover c_std_## and cxx_std_## meta-features
Diffstat (limited to 'Tests/CompileFeatures/cxx_std_23.cpp')
-rw-r--r-- | Tests/CompileFeatures/cxx_std_23.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_std_23.cpp b/Tests/CompileFeatures/cxx_std_23.cpp new file mode 100644 index 0000000..020578d --- /dev/null +++ b/Tests/CompileFeatures/cxx_std_23.cpp @@ -0,0 +1,4 @@ +#include "cxx_std.h" +#if defined(CXX_STD) && CXX_STD <= CXX_STD_20 +# error "cxx_std_23 not honored" +#endif |