From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id A77C2385773F; Fri, 15 Sep 2023 23:18:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A77C2385773F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694819917; bh=6vs/GPlNRTr/p7+HzaWzukgotoWcygUqrjiUAw+LB+4=; h=From:To:Subject:Date:From; b=UAFk/Eb25IgKK6mCGUJul7SCI4zoH6qhlHlmKpSpC+SDq8y99fSh7msfQrT6CaqlX ShAo9oWVqr4exHbJbjHY1GZwbQaqpsqyZAd75S7DKN4pCSKfeUj294Xzs/8B216kAD zAo7O44+qkRlSWRt2WxBnRKgWVjfaA2HHV65yswk= 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-4063] libstdc++: Remove dg-options "-std=gnu++20" from tests X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 1b13c424da4d2d5e3505ba47786a4ac4f3efb177 X-Git-Newrev: 771752c4e3b27cf8870155ed1ebefcc42352b16e Message-Id: <20230915231837.A77C2385773F@sourceware.org> Date: Fri, 15 Sep 2023 23:18:37 +0000 (GMT) List-Id: https://gcc.gnu.org/g:771752c4e3b27cf8870155ed1ebefcc42352b16e commit r14-4063-g771752c4e3b27cf8870155ed1ebefcc42352b16e Author: Jonathan Wakely Date: Fri Sep 15 14:05:07 2023 +0100 libstdc++: Remove dg-options "-std=gnu++20" from 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. libstdc++-v3/ChangeLog: * testsuite/18_support/comparisons/algorithms/fallback.cc: Remove dg-options -std=gnu++2a. * testsuite/18_support/comparisons/algorithms/partial_order.cc: Likewise. * testsuite/18_support/comparisons/algorithms/strong_order.cc: Likewise. * testsuite/18_support/comparisons/algorithms/strong_order_floats.cc: Likewise. * testsuite/18_support/comparisons/algorithms/weak_order.cc: Likewise. * testsuite/18_support/comparisons/categories/94565.cc: Likewise. * testsuite/18_support/comparisons/categories/partialord.cc: Likewise. * testsuite/18_support/comparisons/categories/strongord.cc: Likewise. * testsuite/18_support/comparisons/categories/weakord.cc: Likewise. * testsuite/18_support/comparisons/categories/zero_neg.cc: Likewise. * testsuite/18_support/comparisons/common/1.cc: Likewise. * testsuite/18_support/comparisons/object/93479.cc: Likewise. * testsuite/18_support/comparisons/object/lwg3530.cc: Likewise. Diff: --- libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc | 1 - .../testsuite/18_support/comparisons/algorithms/partial_order.cc | 3 +-- .../testsuite/18_support/comparisons/algorithms/strong_order.cc | 3 +-- .../18_support/comparisons/algorithms/strong_order_floats.cc | 1 - .../testsuite/18_support/comparisons/algorithms/weak_order.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc | 3 +-- .../testsuite/18_support/comparisons/categories/partialord.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc | 4 ++-- libstdc++-v3/testsuite/18_support/comparisons/common/1.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc | 3 +-- libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc | 3 +-- 13 files changed, 12 insertions(+), 24 deletions(-) diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc index 8bf78faf232..da8aaeedcb4 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/fallback.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc index 7c186e607b4..d83bb000160 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/partial_order.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc index be640714245..c97f31442db 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc index e28fcac6e11..135cba2e658 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/strong_order_floats.cc @@ -1,4 +1,3 @@ -// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc index a66ca6a51e0..1ff471f7203 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/algorithms/weak_order.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do run { target c++2a } } +// { dg-do run { target c++20 } } #include #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc index 624f114204d..47092b9116c 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/94565.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc index 818f5a17b15..57fe68a3d82 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/partialord.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc index 87999741536..e23c571c909 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/strongord.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc index a0f6eb3677c..866733741f8 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/weakord.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc b/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc index 17a129bcb75..9d2115b3f4f 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/categories/zero_neg.cc @@ -15,8 +15,8 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a -Wno-unused-result" } -// { dg-do compile { target c++2a } } +// { dg-options "-Wno-unused-result" } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc b/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc index f9acf163ed0..7050e75327a 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/common/1.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc b/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc index 82e1d72f03d..15178f7c27f 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/object/93479.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc b/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc index f042ce0f1dc..b9a3cf55ee6 100644 --- a/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc +++ b/libstdc++-v3/testsuite/18_support/comparisons/object/lwg3530.cc @@ -15,8 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-options "-std=gnu++2a" } -// { dg-do compile { target c++2a } } +// { dg-do compile { target c++20 } } #include