From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 70ED33856DF2; Fri, 15 Sep 2023 23:03:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70ED33856DF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694819032; bh=pdiY9KhkNIubMguOJJsM66/ucEHrusaKTAmDhSgEpNE=; h=From:To:Subject:Date:From; b=Tp68NvRLa35KuUXYFSBjwKa9RdRyCY8MWSMxkHjBc5QFWyLLs01mFwmqr+T5eBBow GUn/r3PEZRsb5IWxltPd8oVJMiRXUcYUPB4LCHt8D5HCyx0zVeLx+R49FGZciWptwe 3ypNamoqW2WFxV1aSAEIhmr40vRLTTm7hXCB9EuI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-4049] libstdc++: Replace dg-options "-std=c++20" with dg-add-options strict_std X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: c4bf6e8e8ac9aae63dd8aa9a645a282531549e75 X-Git-Newrev: 07c602bbbd5134a03b363009abe927d0761e5ff0 Message-Id: <20230915230352.70ED33856DF2@sourceware.org> Date: Fri, 15 Sep 2023 23:03:52 +0000 (GMT) List-Id: https://gcc.gnu.org/g:07c602bbbd5134a03b363009abe927d0761e5ff0 commit r14-4049-g07c602bbbd5134a03b363009abe927d0761e5ff0 Author: Jonathan Wakely Date: Mon Sep 4 14:11:54 2023 +0100 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. Diff: --- libstdc++-v3/testsuite/24_iterators/reverse_iterator/100639.cc | 4 ++-- libstdc++-v3/testsuite/std/ranges/iota/93267.cc | 4 ++-- libstdc++-v3/testsuite/std/ranges/iota/96042.cc | 4 ++-- libstdc++-v3/testsuite/std/ranges/iota/size.cc | 2 +- libstdc++-v3/testsuite/std/ranges/subrange/96042.cc | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/100639.cc b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/100639.cc index 5d0a7f4af27..68bf4e08488 100644 --- a/libstdc++-v3/testsuite/24_iterators/reverse_iterator/100639.cc +++ b/libstdc++-v3/testsuite/24_iterators/reverse_iterator/100639.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=c++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } // PR libstdc++/100639 diff --git a/libstdc++-v3/testsuite/std/ranges/iota/93267.cc b/libstdc++-v3/testsuite/std/ranges/iota/93267.cc index 3bb74bbf485..4306aea4d43 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 // . -// { dg-options "-std=c++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } #include diff --git a/libstdc++-v3/testsuite/std/ranges/iota/96042.cc b/libstdc++-v3/testsuite/std/ranges/iota/96042.cc index 7070a7d6b10..6c553de9ce9 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 // . -// { dg-options "-std=c++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } #include #include diff --git a/libstdc++-v3/testsuite/std/ranges/iota/size.cc b/libstdc++-v3/testsuite/std/ranges/iota/size.cc index 958cb5f03c8..28848d55561 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 // . -// { dg-options "-std=c++2a" } // { dg-do compile { target c++2a } } +// { dg-add-options strict_std } #include #include diff --git a/libstdc++-v3/testsuite/std/ranges/subrange/96042.cc b/libstdc++-v3/testsuite/std/ranges/subrange/96042.cc index bc22f999ed8..3856952eeb3 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 // . -// { dg-options "-std=c++20" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } +// { dg-add-options strict_std } #include #include