]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove duplicate test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 20 Jun 2024 21:17:08 +0000 (22:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 26 Jun 2024 20:15:14 +0000 (21:15 +0100)
commit6eff23314a7e51715f988acf3c19824fe87b5754
treea0e465b716ef42b38019a61b40cc48a0b23a8447
parente65b6627a36869b01bbe128a5324e4b415b28880
libstdc++: Remove duplicate test

We currently have 808590.cc which only runs for C++98 mode, and
808590-cxx11.cc which only runs for C++11 and later, but have almost
identical content (except for a defaulted special member in the C++11
one, to suppress a -Wdeprecated-copy warning).

This was done originally to ensure that the test ran for both C++98 mode
and C++11 mode, because the logic being tested was different enough to
need both to be tested. But it's trivial to run all tests in multiple
-std modes now, using GLIBCXX_TESTSUITE_STDS, so we don't need two
separate tests. We can remove one of the tests and allow the other one
to run in any -std mode.

libstdc++-v3/ChangeLog:

* testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc:
Copy defaulted assignment operator from 808590-cxx11.cc to
suppress a warning.
* testsuite/20_util/specialized_algorithms/uninitialized_copy/808590-cxx11.cc:
Removed.
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_copy/808590-cxx11.cc [deleted file]
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc