aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Kamiński <tkaminsk@redhat.com>2025-05-26 17:35:08 +0200
committerTomasz Kamiński <tkaminsk@redhat.com>2025-05-26 18:19:01 +0200
commit97e8cd9295dadad32fb5866e96cb7e403c1d993d (patch)
tree52bce14c9d08e8cfd8b3b3bb3f732825e55bb927
parent45b849d05b733a25ec7ce612229084b8f4b86d3d (diff)
downloadgcc-97e8cd9295dadad32fb5866e96cb7e403c1d993d.zip
gcc-97e8cd9295dadad32fb5866e96cb7e403c1d993d.tar.gz
gcc-97e8cd9295dadad32fb5866e96cb7e403c1d993d.tar.bz2
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.
-rw-r--r--libstdc++-v3/testsuite/std/memory/indirect/ctor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/std/memory/indirect/ctor.cc b/libstdc++-v3/testsuite/std/memory/indirect/ctor.cc
index 67e7a8a..124874d 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<std::vector<int>> i5(std::in_place);
VERIFY( i5->size() == 0 );
- VERIFY( i5->at(0) == 13 );
std::indirect<std::vector<int>> 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;
});
}