From: Jonathan Wakely Date: Mon, 15 Nov 2021 20:37:04 +0000 (+0000) Subject: libstdc++: Fix typos in tests X-Git-Tag: basepoints/gcc-13~3010 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971976947154c7442a2f8262a9bbd1bc540e6544;p=thirdparty%2Fgcc.git libstdc++: Fix typos in tests libstdc++-v3/ChangeLog: * testsuite/21_strings/basic_string/allocator/71964.cc: Fix typo. * testsuite/23_containers/set/allocator/71964.cc: Likewise. --- diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/71964.cc b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/71964.cc index c57cb96e971c..4196b331aca0 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/allocator/71964.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/allocator/71964.cc @@ -40,7 +40,7 @@ template a.moved_from = true; } - T* allocate(unsigned n) { return std::allocator{}.allcoate(n); } + T* allocate(unsigned n) { return std::allocator{}.allocate(n); } void deallocate(T* p, unsigned n) { std::allocator{}.deallocate(p, n); } bool moved_to; diff --git a/libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc b/libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc index 34a02d85e667..a2c166afd0fc 100644 --- a/libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc +++ b/libstdc++-v3/testsuite/23_containers/set/allocator/71964.cc @@ -40,7 +40,7 @@ template a.moved_from = true; } - T* allocate(unsigned n) { return std::allocator{}.allcoate(n); } + T* allocate(unsigned n) { return std::allocator{}.allocate(n); } void deallocate(T* p, unsigned n) { std::allocator{}.deallocate(p, n); } bool moved_to;