[libcxx-commits] [libcxx] [libc++][test][NFC] Introduce `TEST_STD_AT_LEAST_26_OR_RUNTIME_EVALUATED` (PR #132593)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Mar 23 05:43:08 PDT 2025


================
@@ -148,6 +148,12 @@
 # define TEST_IS_CONSTANT_EVALUATED false
 #endif
 
+#if TEST_STD_VER >= 26
+#  define TEST_STD_AT_LEAST_26_OR_RUNTIME_EVALUATED true
+#else
+#  define TEST_STD_AT_LEAST_26_OR_RUNTIME_EVALUATED (!TEST_IS_CONSTANT_EVALUATED)
+#endif
+
----------------
mordante wrote:

This looks out of order, C++26, C++23, C++20. Typically we do increasing order of the version. Can you fix that and as drive-by for C++23?

https://github.com/llvm/llvm-project/pull/132593


More information about the libcxx-commits mailing list