[libcxx-commits] [libcxx] [libc++][test] Make `deallocate_size.pass.cpp` MSVC-friendly (PR #165162)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 28 06:08:12 PDT 2025
================
@@ -64,14 +65,14 @@ struct test_alloc {
template <class Sz>
void test() {
+ using Str = std::basic_string<char, std::char_traits<char>, test_alloc<char, Sz> >;
for (int i = 1; i < 1000; ++i) {
- using Str = std::basic_string<char, std::char_traits<char>, test_alloc<char, Sz> >;
{
Str s(i, 't');
- assert(allocated_ == 0 || allocated_ >= i);
+ (void)s;
----------------
philnik777 wrote:
`[[maybe_unused]]`?
https://github.com/llvm/llvm-project/pull/165162
More information about the libcxx-commits
mailing list