From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 8E46A3856DD6; Fri, 15 Sep 2023 23:03:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E46A3856DD6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694819037; bh=ZcwaW0nv21VK7WZHck2RzAXN/RYBmt+yBliKFpzUOo8=; h=From:To:Subject:Date:From; b=pkJv668CIcdjLlAY5ampISx16ja2WeC62IcFwF9fynzjMchcqWlTSnwrGsVemRi7V i41sU1XqlKKOWrwOrI4JxitCI6Dk4vtepzEp/WCHJhjxSEYxNwLwjuIDB1NWV2FIWn 1aw33atni5Bg0HrRIqTqjUAE94cNm2zHKF8X9/5M= 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-4050] libstdc++: Remove dg-options "-std=c++20" from and tests X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 07c602bbbd5134a03b363009abe927d0761e5ff0 X-Git-Newrev: 5d066729ff0b9c9a2aae975244bb96f8e55e7d08 Message-Id: <20230915230357.8E46A3856DD6@sourceware.org> Date: Fri, 15 Sep 2023 23:03:57 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5d066729ff0b9c9a2aae975244bb96f8e55e7d08 commit r14-4050-g5d066729ff0b9c9a2aae975244bb96f8e55e7d08 Author: Jonathan Wakely Date: Mon Sep 4 16:01:16 2023 +0100 libstdc++: Remove dg-options "-std=c++20" from and tests 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. There doesn't seem to be any reason they need to use strict -std=c++20 mode, so don't add the { dg-add-options strict_std } directive, just let them use strict or non-strict modes. libstdc++-v3/ChangeLog: * testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc: Remove dg-options. * testsuite/23_containers/span/contiguous_range_neg.cc: Likewise. * testsuite/23_containers/span/everything.cc: Likewise. Diff: --- .../testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc | 1 - libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc | 3 +-- libstdc++-v3/testsuite/23_containers/span/everything.cc | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc b/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc index df68fb7c82f..1964803cbd1 100644 --- a/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc +++ b/libstdc++-v3/testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=c++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc b/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc index d5f64922052..2ed44740a86 100644 --- a/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/span/contiguous_range_neg.cc @@ -15,8 +15,7 @@ // 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 } } #include #include diff --git a/libstdc++-v3/testsuite/23_containers/span/everything.cc b/libstdc++-v3/testsuite/23_containers/span/everything.cc index 74f943e937f..31c17346dd3 100644 --- a/libstdc++-v3/testsuite/23_containers/span/everything.cc +++ b/libstdc++-v3/testsuite/23_containers/span/everything.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=c++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include