[libcxx-commits] [libcxx] [libc++][string] Add constexpr initialization stress test (PR #184723)
Vitaly Buka via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 6 08:54:08 PST 2026
vitalybuka wrote:
> What is the underlying goal here? This test seems somewhat arbitrary: when we add a test like this, we should have in mind what guarantee provided to the user we're trying to test. What is that guarantee here: that we can initialize an array of 1000 strings without changing the default constexpr evaluation limit of the compiler? That seems like a weird guarantee to provide.
It's precommited test for https://github.com/llvm/llvm-project/pull/184724
Now we can guaranty libc++ will not consume limit allocating 1000 array
After #184724 we will guaranty 5000
https://github.com/llvm/llvm-project/pull/184723
More information about the libcxx-commits
mailing list