diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-09-04 14:11:54 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-09-15 21:57:38 +0100 |
commit | 07c602bbbd5134a03b363009abe927d0761e5ff0 (patch) | |
tree | 95e30f4cb583b7d71ebeb13323f2d687a39a4ab2 /libstdc++-v3/testsuite/std/ranges | |
parent | c4bf6e8e8ac9aae63dd8aa9a645a282531549e75 (diff) | |
download | gcc-07c602bbbd5134a03b363009abe927d0761e5ff0.zip gcc-07c602bbbd5134a03b363009abe927d0761e5ff0.tar.gz gcc-07c602bbbd5134a03b363009abe927d0761e5ff0.tar.bz2 |
libstdc++: Replace dg-options "-std=c++20" with dg-add-options strict_std
The testsuite will automatically select C++20 for these tests now, and
removing the hardcoded -std option allows them to be tested for C++23
and C++26 as well. Because they test a problem seen with -std=c++20 add
the new { dg-add-options strict_std } directive so that the test runner
uses -std=c++NN not -std=gnu++NN.
libstdc++-v3/ChangeLog:
* testsuite/24_iterators/reverse_iterator/100639.cc: Remove
dg-options and add dg-add-options strict_std.
* testsuite/std/ranges/iota/93267.cc: Likewise.
* testsuite/std/ranges/iota/96042.cc: Likewise.
* testsuite/std/ranges/iota/size.cc: Likewise.
* testsuite/std/ranges/subrange/96042.cc: Likewise.
Diffstat (limited to 'libstdc++-v3/testsuite/std/ranges')
4 files changed, 7 insertions, 7 deletions
diff --git a/libstdc++-v3/testsuite/std/ranges/iota/93267.cc b/libstdc++-v3/testsuite/std/ranges/iota/93267.cc index 3bb74bb..4306aea4 100644 --- a/libstdc++-v3/testsuite/std/ranges/iota/93267.cc +++ b/libstdc++-v3/testsuite/std/ranges/iota/93267.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=c++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } #include <ranges> diff --git a/libstdc++-v3/testsuite/std/ranges/iota/96042.cc b/libstdc++-v3/testsuite/std/ranges/iota/96042.cc index 7070a7d..6c553de 100644 --- a/libstdc++-v3/testsuite/std/ranges/iota/96042.cc +++ b/libstdc++-v3/testsuite/std/ranges/iota/96042.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=c++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } #include <ranges> #include <limits> diff --git a/libstdc++-v3/testsuite/std/ranges/iota/size.cc b/libstdc++-v3/testsuite/std/ranges/iota/size.cc index 958cb5f..28848d5 100644 --- a/libstdc++-v3/testsuite/std/ranges/iota/size.cc +++ b/libstdc++-v3/testsuite/std/ranges/iota/size.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=c++2a" } // { dg-do compile { target c++2a } } +// { dg-add-options strict_std } #include <ranges> #include <limits> diff --git a/libstdc++-v3/testsuite/std/ranges/subrange/96042.cc b/libstdc++-v3/testsuite/std/ranges/subrange/96042.cc index bc22f99..3856952 100644 --- a/libstdc++-v3/testsuite/std/ranges/subrange/96042.cc +++ b/libstdc++-v3/testsuite/std/ranges/subrange/96042.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=c++20" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } #include <ranges> #include <limits> |