[libcxx-commits] [libcxx] [libc++]libcxx constexpr deque (PR #200929)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 9 01:27:44 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:

We don't have to stay within the default Clang limit.

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


More information about the libcxx-commits mailing list