[libcxx-commits] [libcxx] [libc++]libcxx constexpr deque (PR #200929)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 9 00:52:17 PDT 2026
================
@@ -19,7 +21,22 @@
#include "test_macros.h"
#include "min_allocator.h"
+#if TEST_STD_VER >= 26
+constexpr bool test() {
+ std::deque<int> d;
+ assert(d.empty());
+ d.push_back(1);
+ assert(!d.empty());
+ return true;
+}
+#endif
+
int main(int, char**) {
+#if TEST_STD_VER >= 26
----------------
frederick-vs-ja wrote:
Full constant evaluation in some test are too heavy to be suitable CI. You may look into some former failures in #129368. For some files, just using `static_assert(test());` for all cases needs to consume more than 10^10 steps and more than 15min compilation time.
https://github.com/llvm/llvm-project/pull/200929
More information about the libcxx-commits
mailing list