libstdc++: Combine three tests into one
Instead of a test with { target c++11_only } and another with c++14_only and another with c++17 we can have a single test that uses { target c++11 }. This avoids needing to make edits to three very similar tests. Also fix the signatures for std::cbegin and std::cend which had the wrong expression in the trailing-return-type and were missing their constexpr and conditional noexcept (which were always present even in C++14). That was wrong in two files, but now only needs to be fixed in one place! libstdc++-v3/ChangeLog: * testsuite/24_iterators/headers/iterator/range_access_c++11.cc: Removed. * testsuite/24_iterators/headers/iterator/range_access_c++14.cc: Removed. * testsuite/24_iterators/headers/iterator/range_access_c++17.cc: Removed. * testsuite/24_iterators/headers/iterator/range_access.cc: New test.
Showing
- libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access.cc 107 additions, 0 deletions...3/testsuite/24_iterators/headers/iterator/range_access.cc
- libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++11.cc 0 additions, 40 deletions...suite/24_iterators/headers/iterator/range_access_c++11.cc
- libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access_c++14.cc 0 additions, 64 deletions...suite/24_iterators/headers/iterator/range_access_c++14.cc
Loading
Please register or sign in to comment