summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_std_23.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-02 20:06:53 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-05 11:38:58 (GMT)
commitc37e2790145d0b304f2072bee3d5206ecb12eafc (patch)
tree2219c186e0893523bcbabcea12f471f77330a55c /Tests/CompileFeatures/cxx_std_23.cpp
parent58cd9ee03c42531de652d7687e17eead8b42de0b (diff)
downloadCMake-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.cpp4
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