]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=gnu++20" from 26_numerics tests
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 13:27:56 +0000 (14:27 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 23:10:45 +0000 (00:10 +0100)
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/26_numerics/accumulate/constexpr.cc: Remove
dg-options -std=gnu++2a.
* testsuite/26_numerics/accumulate/lwg2055.cc: Likewise.
* testsuite/26_numerics/adjacent_difference/constexpr.cc:
Likewise.
* testsuite/26_numerics/bit/bit.cast/105027.cc: Likewise.
* testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
* testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
* testsuite/26_numerics/bit/bit.count/countl_one.cc: Likewise.
* testsuite/26_numerics/bit/bit.pow.two/bit_ceil_neg.cc:
Likewise.
* testsuite/26_numerics/bit/bit.pow.two/bit_floor.cc: Likewise.
* testsuite/26_numerics/bit/bit.pow.two/bit_width.cc: Likewise.
* testsuite/26_numerics/bit/bit.pow.two/lwg3656.cc: Likewise.
* testsuite/26_numerics/bit/bit.rotate/rotl.cc: Likewise.
* testsuite/26_numerics/bit/bit.rotate/rotr.cc: Likewise.
* testsuite/26_numerics/bit/header-2.cc: Likewise.
* testsuite/26_numerics/bit/header.cc: Likewise.
* testsuite/26_numerics/complex/1.cc: Likewise.
* testsuite/26_numerics/complex/2.cc: Likewise.
* testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc:
Likewise.
* testsuite/26_numerics/complex/operators/more_constexpr.cc:
Likewise.
* testsuite/26_numerics/complex/requirements/more_constexpr.cc:
Likewise.
* testsuite/26_numerics/complex/value_operations/more_constexpr.cc:
Likewise.
* testsuite/26_numerics/endian/1.cc: Likewise.
* testsuite/26_numerics/endian/2.cc: Likewise.
* testsuite/26_numerics/endian/3.cc: Likewise.
* testsuite/26_numerics/exclusive_scan/constexpr.cc: Likewise.
* testsuite/26_numerics/inclusive_scan/constexpr.cc: Likewise.
* testsuite/26_numerics/inner_product/constexpr.cc: Likewise.
* testsuite/26_numerics/inner_product/lwg2055.cc: Likewise.
* testsuite/26_numerics/iota/constexpr.cc: Likewise.
* testsuite/26_numerics/lerp/1.cc: Likewise.
* testsuite/26_numerics/lerp/constexpr.cc: Likewise.
* testsuite/26_numerics/lerp/version.cc: Likewise.
* testsuite/26_numerics/midpoint/floating.cc: Likewise.
* testsuite/26_numerics/midpoint/integral.cc: Likewise.
* testsuite/26_numerics/midpoint/pointer.cc: Likewise.
* testsuite/26_numerics/midpoint/pointer_neg.cc: Likewise.
* testsuite/26_numerics/midpoint/version.cc: Likewise.
* testsuite/26_numerics/numbers/1.cc: Likewise.
* testsuite/26_numerics/numbers/2.cc: Likewise.
* testsuite/26_numerics/numbers/3.cc: Likewise.
* testsuite/26_numerics/numbers/float128.cc: Likewise.
* testsuite/26_numerics/numbers/nonfloat_neg.cc: Likewise.
* testsuite/26_numerics/partial_sum/constexpr.cc: Likewise.
* testsuite/26_numerics/partial_sum/lwg2055.cc: Likewise.
* testsuite/26_numerics/random/concept.cc: Likewise.
* testsuite/26_numerics/reduce/constexpr.cc: Likewise.
* testsuite/26_numerics/slice/compare.cc: Likewise.
* testsuite/26_numerics/transform_exclusive_scan/constexpr.cc:
Likewise.
* testsuite/26_numerics/transform_inclusive_scan/constexpr.cc:
Likewise.
* testsuite/26_numerics/transform_reduce/constexpr.cc: Likewise.

50 files changed:
libstdc++-v3/testsuite/26_numerics/accumulate/constexpr.cc
libstdc++-v3/testsuite/26_numerics/accumulate/lwg2055.cc
libstdc++-v3/testsuite/26_numerics/adjacent_difference/constexpr.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.cast/105027.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.cast/bit_cast.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.cast/version.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.count/countl_one.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_ceil_neg.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_floor.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/bit_width.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.pow.two/lwg3656.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.rotate/rotl.cc
libstdc++-v3/testsuite/26_numerics/bit/bit.rotate/rotr.cc
libstdc++-v3/testsuite/26_numerics/bit/header-2.cc
libstdc++-v3/testsuite/26_numerics/bit/header.cc
libstdc++-v3/testsuite/26_numerics/complex/1.cc
libstdc++-v3/testsuite/26_numerics/complex/2.cc
libstdc++-v3/testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc
libstdc++-v3/testsuite/26_numerics/complex/operators/more_constexpr.cc
libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc
libstdc++-v3/testsuite/26_numerics/complex/value_operations/more_constexpr.cc
libstdc++-v3/testsuite/26_numerics/endian/1.cc
libstdc++-v3/testsuite/26_numerics/endian/2.cc
libstdc++-v3/testsuite/26_numerics/endian/3.cc
libstdc++-v3/testsuite/26_numerics/exclusive_scan/constexpr.cc
libstdc++-v3/testsuite/26_numerics/inclusive_scan/constexpr.cc
libstdc++-v3/testsuite/26_numerics/inner_product/constexpr.cc
libstdc++-v3/testsuite/26_numerics/inner_product/lwg2055.cc
libstdc++-v3/testsuite/26_numerics/iota/constexpr.cc
libstdc++-v3/testsuite/26_numerics/lerp/1.cc
libstdc++-v3/testsuite/26_numerics/lerp/constexpr.cc
libstdc++-v3/testsuite/26_numerics/lerp/version.cc
libstdc++-v3/testsuite/26_numerics/midpoint/floating.cc
libstdc++-v3/testsuite/26_numerics/midpoint/integral.cc
libstdc++-v3/testsuite/26_numerics/midpoint/pointer.cc
libstdc++-v3/testsuite/26_numerics/midpoint/pointer_neg.cc
libstdc++-v3/testsuite/26_numerics/midpoint/version.cc
libstdc++-v3/testsuite/26_numerics/numbers/1.cc
libstdc++-v3/testsuite/26_numerics/numbers/2.cc
libstdc++-v3/testsuite/26_numerics/numbers/3.cc
libstdc++-v3/testsuite/26_numerics/numbers/float128.cc
libstdc++-v3/testsuite/26_numerics/numbers/nonfloat_neg.cc
libstdc++-v3/testsuite/26_numerics/partial_sum/constexpr.cc
libstdc++-v3/testsuite/26_numerics/partial_sum/lwg2055.cc
libstdc++-v3/testsuite/26_numerics/random/concept.cc
libstdc++-v3/testsuite/26_numerics/reduce/constexpr.cc
libstdc++-v3/testsuite/26_numerics/slice/compare.cc
libstdc++-v3/testsuite/26_numerics/transform_exclusive_scan/constexpr.cc
libstdc++-v3/testsuite/26_numerics/transform_inclusive_scan/constexpr.cc
libstdc++-v3/testsuite/26_numerics/transform_reduce/constexpr.cc

index a6b1ec18be04d31a77f836033ee03025dbae22c7..91e4f8ac369467fc4020f6217d9e1b5f6e3a4e6e 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 3fd848637a343f76b180368f26d3db9a24c4ee36..6cdca6433a698744bd6334c64a4252bdd7d4f4d9 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <numeric>
 #include <iterator>
index 0d5265d096192979afc21848fea1e3bc0fb676e7..bc67b4baedc14c92f180f66ad4a8839e269010e0 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 301d94ec575ad075c4116933944a1884c9063135..5cba4034eda3d2e72fca9e79d51629b39291362e 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 // PR libstdc++/105027 - Missing constraints on std::bit_cast
index efbf4476ba6a95ad5a5726e23f1ecdfdfe0cf470..dc7249df68a2e1b9abd0e255d212630ebbb2d37c 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 
index 691a75863c8d759f317da5fc0b0732d242c9371c..296adf75682e5cc37183cb69bf28df43e4a61ef1 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <version>
 
index c82117326621693a33977aab88e1b2e039ed832d..1616e89c9b342dfcf2fdfcb1bd11b420d8cb10e4 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 #include <limits>
index 67aa736ac8e55b5d6f36ae0af2854a66fc492c9a..50e63d7fb88c484d027d215b754bc9900eb15dd4 100644 (file)
@@ -15,8 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a -D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++2a } }
+// { dg-options "-D_GLIBCXX_ASSERTIONS" }
+// { dg-do run { target c++20 } }
 // { dg-xfail-run-if "__glibcxx_assert in bit_ceil should fail" { *-*-* } }
 
 #include <bit>
index 5a879abb27edf2213f9274791ec912dfba204f34..fb343b44e919cdf9424a3a23a136cdb126cc7f02 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 #include <limits>
index 57a1135cd39899ef6454a2a7daa8f6dba631b4f8..d513f1b6d5cc143027c7a06ca34465bcf5f0cdf4 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 #include <limits>
index 4752c3b1d33ba3eac500551589fa40c4a87dcb02..b9b332f0bef87a7ae1cbc252efc3a6f1dc396fc3 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 
 #include <bit>
index 9a908f641ca639d36fd270af06ac5b5b52da1262..f9c7133f59522d474c5b8b6cef8f5e1244391044 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 #include <limits>
index d3462cbc921a01116a357af306741ca9cb05e97a..48cadd71c7fe2116c1cc81e3a207bab67a1d9803 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 #include <limits>
index 0059c31ff94e701b1754a253af3b2f4ea89bea68..07d0865214ec3cb30a23acb0e567e5de17fa476f 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <version>
 
index 00a958edf45adb601299930cb50a9c2be45e6263..36207bb5149287d9fa16351942e65d948f44ec17 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 
index 15379d060d5aeb8e6c77bb9b23143f76702c387c..229926cd82c1b1cf523a7801c7ca65c05ab6ab4e 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do preprocess { target c++2a } }
+// { dg-do preprocess { target c++20 } }
 
 #include <complex>
 
index bdc2edbd5be267592834a5aa5b0db63c40c9f872..6276e2de405465d8483a1b8f0d0e97b5e20f2bc6 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do preprocess { target c++2a } }
+// { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
 
 #include <version>
index 300b0c63e5cded0be57614db52dc1bab3d7cd906..1472507a87eefb71aa7ed07ad0fad37f4c74e65c 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
index ff2f49fbb645033fb02f26a4e8f704365f1f84b6..320770e632b67b6e0292bd0ee41f7f9bff39ba2f 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
index 65533dbb8a8a85a69f00cc63052e4921f195a8ca..40d2187fae02795a475dfc198924d18b326060ed 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
index 611847107e054220f8c06de6359e3322d46d1856..ff2ee697be9abe2a39c31eeb4faf49d1a192667b 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 // Copyright (C) 2018-2023 Free Software Foundation, Inc.
 //
index fd32140c962f26762136292d1aa25ba7c597b83c..1dd89dfcc45712ae18c2b824bfa8807eb0b70b60 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 
index 569882cff6310801bea00fa7f6583d9e0b5bfae6..2822be355633fa44ccc42ffac197f7a03845c430 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <bit>
 
index 63b4459adcdc07dee3cea0da8486adb053018bac..7e02cab40869a28b6ad02e4261df1991cb83ee5c 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <version>
 
index deabdfec46b4a97fada87161a8f6db24e215ea44..d6609dd5012f4ca36b7defbea480c6b04107d727 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 2e3939438847d51334758f9257826fc4ef2fb125..63053ed0318c04603fd5d431d446ce47ae3987df 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 55ed5fd82ba6ad08282400b0b09dcc74478d2f0a..1cc380347aed14330701372508929ba6f2d3c044 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 647583c160e98f8e3d02af92881bd83dfabbce02..66953c4339f95ae52072207a431abb4c5167bcf0 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <numeric>
 #include <iterator>
index 8b7ea23039ef5151fad6eb220215988a82f02ce5..089c4fbae71b1b41f33101a947539f921859d995 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <numeric>
 
index 328f5090fcbbc3c5684d3e69d7c5e7a3fdeec53b..65b715437f549398f0007a06e4c5026e32ee7063 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <cmath>
 
index f1ab42b5a42e696a43eb6c571397e1df36077256..10956a55ba3be71155908f6cc89efbfd1289557d 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <cmath>
 
index c19ead7586dd1047c6fd7599219cb8c72463904c..63206ba8e3fe91944272572ec7b59932a89e4f45 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do preprocess { target c++2a } }
+// { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
 
 #include <version>
index 7ccf317118b32c7cc7522c40cd4b5fc180487b5f..32985db02201bdc416642236347ad39e1ed446ed 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <numeric>
 #include <limits>
index 0157db5bc21a343b041d07c757bf02830f7d8e5c..0f8a16e656e7f25c41881a5d1734bf29c11b53b6 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <numeric>
 
index 6d70cfe77c7b21ab006883a082f7b0ec3742a29a..c11968534bb745133ba7301bd26900751fa64be5 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <numeric>
 #include <testsuite_hooks.h>
index 8fa8d53a827bad49a9e48f8380073e2fbd52d836..1935ed4effe95b694ac04d09d043d224c3fa744f 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <numeric>
 
index c19ead7586dd1047c6fd7599219cb8c72463904c..63206ba8e3fe91944272572ec7b59932a89e4f45 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do preprocess { target c++2a } }
+// { dg-do preprocess { target c++20 } }
 // { dg-require-effective-target hosted }
 
 #include <version>
index 83714520b9e7bb2df13735b7b5a62f125c699a02..f41551c21486be1f0df8b56a9ac6bc811b557ab0 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <numbers>
 
index e35bda39bb0225da20875b3e59fb932ecd80280e..d9e791e2843b41d58f8ee32a89ed41bc614c2793 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <version>
 
index ff0fb1a0127aa38ca24699d7bfe06a73d8bbf5db..c7e32c9c7d37fffabdca24e32cd6555e411e052e 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <numbers>
 
index ff50cf420fd84a0a9b721411d86db367556b5fe0..a5983b74fe89041db4d8e435b3d5f83df99070a8 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <numbers>
 
index b7f1afc0ebe54de8b31f96aaf48a3fc03fbce734..35e2ad8e728c3ac7fa312260b5363be79e0acb2b 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <numbers>
 
index 9737f9667fbd200680f62b6ca019fc796e9906b2..782f0743c55d6ea0b86db09568ad3c683cc6d5c7 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 627371bd875859fe7e87e2daa4654ab903fa5ba8..c1fd6d53b04fa55433435065ff7e286de660522e 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <numeric>
 #include <iterator>
index fcc1614ca18ec2274008a029245cf54ae15d9186..0b37290fd463fc9c5736e83723efd5623927cce1 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-cstdint "" }
 
 #include <random>
index eb89d7309d1ca616760f0ce2cd151458f102985e..89eda705c73234b549fb35b87c43ca6ba98ad7eb 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index c239896d83da5f812bb5d2b096b10090cc0690ad..2c269b2b7200e9c4d9deac445e652fd6cc5f7a98 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <valarray>
 #include <testsuite_hooks.h>
index f409a330bb392b926064dde633d1bd9b1fcbe666..9ca770a85fc05941afe9022b81cf7ea69cfb5a49 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 8f3d527e5dad0bda94115cbcc4688c6d22c4d0c5..ff3639fdc2293abb314abc8e9b885c4d4903b5e9 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>
index 5eeeec946076799b738cfc339876e4496fd736e5..e331f53a59035974f290651e685e335691c6cadc 100644 (file)
@@ -15,8 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 
 #include <functional>
 #include <numeric>