aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-06-08 12:19:26 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-06-09 09:55:42 +0100
commit3ec1d76a359542ed4c8370390efa9ee9e25e757f (patch)
tree805bde8dbc03abc3918044d8446e2702f7ee01c9 /gcc
parentcb33116afc2da3024cffdeed5d90b69c3820017b (diff)
downloadgcc-3ec1d76a359542ed4c8370390efa9ee9e25e757f.zip
gcc-3ec1d76a359542ed4c8370390efa9ee9e25e757f.tar.gz
gcc-3ec1d76a359542ed4c8370390efa9ee9e25e757f.tar.bz2
libstdc++: Improve tests for emplace member of sequence containers
Our existing tests for std::deque::emplace, std::list::emplace and std::vector::emplace are poor. We only have compile tests for PR 52799 and the equivalent for a const_iterator as the insertion point. This fails to check that the value is actually inserted correctly and the right iterator is returned. Add new tests that cover the existing 52799.cc and const_iterator.cc compile-only tests, as well as verifying the effects are correct. libstdc++-v3/ChangeLog: * testsuite/23_containers/deque/modifiers/emplace/52799.cc: Removed. * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc: Removed. * testsuite/23_containers/list/modifiers/emplace/52799.cc: Removed. * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc: Removed. * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Removed. * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc: Removed. * testsuite/23_containers/deque/modifiers/emplace/1.cc: New test. * testsuite/23_containers/list/modifiers/emplace/1.cc: New test. * testsuite/23_containers/vector/modifiers/emplace/1.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions