[libcxx-commits] [libcxx] [libc++] Make list constexpr as part of P3372R3 (PR #129799)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 11 09:52:48 PDT 2025
================
@@ -239,12 +240,24 @@ void test_ctor_under_alloc_with_alloc() {
#endif
}
-int main(int, char**) {
+TEST_CONSTEXPR_CXX26 bool test() {
basic_test();
test_emplacable_concept();
test_emplacable_concept_with_alloc();
- test_ctor_under_alloc();
- test_ctor_under_alloc_with_alloc();
+
+ if (!TEST_IS_CONSTANT_EVALUATED) {
+ test_ctor_under_alloc();
+ test_ctor_under_alloc_with_alloc();
----------------
ldionne wrote:
The ideal outcome here might be to pass this static data as an argument to the various "controller" types and create the object as a local variable in the function instead. I don't know if that's feasible though. I think this is reasonable for now.
https://github.com/llvm/llvm-project/pull/129799
More information about the libcxx-commits
mailing list