[libcxx-commits] [libcxx] [libc++]libcxx constexpr deque (PR #200929)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 9 00:58:27 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
----------------
philnik777 wrote:
Then we can reduce the amount of testing in these few tests. Most tests aren't that heavy. The tests currently here are definitely too light.
https://github.com/llvm/llvm-project/pull/200929
More information about the libcxx-commits
mailing list