From: Tomasz KamiƄski Date: Mon, 26 May 2025 15:35:08 +0000 (+0200) Subject: libstdc++: Run in_place constructor test for std::indirect [PR119152] X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97e8cd9295dadad32fb5866e96cb7e403c1d993d;p=thirdparty%2Fgcc.git libstdc++: Run in_place constructor test for std::indirect [PR119152] In indirect/ctor.cc test_inplace_ctor function was defined, but never called. PR libstdc++/119152 libstdc++-v3/ChangeLog: * testsuite/std/memory/indirect/ctor.cc: Run test_inplace_ctor. --- diff --git a/libstdc++-v3/testsuite/std/memory/indirect/ctor.cc b/libstdc++-v3/testsuite/std/memory/indirect/ctor.cc index 67e7a8aba03..124874d02fe 100644 --- a/libstdc++-v3/testsuite/std/memory/indirect/ctor.cc +++ b/libstdc++-v3/testsuite/std/memory/indirect/ctor.cc @@ -139,7 +139,6 @@ test_inplace_ctor() std::indirect> i5(std::in_place); VERIFY( i5->size() == 0 ); - VERIFY( i5->at(0) == 13 ); std::indirect> i6(std::in_place, 5, 13); VERIFY( i6->size() == 5 ); @@ -194,10 +193,12 @@ int main() { test_default_ctor(); test_forwarding_ctor(); + test_inplace_ctor(); static_assert([] { test_default_ctor(); test_forwarding_ctor(); + test_inplace_ctor(); return true; }); }