]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-options "-std=gnu++20" from 30_threads 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:46 +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/30_threads/barrier/1.cc: Remove dg-options
-std=gnu++20.
* testsuite/30_threads/barrier/2.cc: Likewise.
* testsuite/30_threads/barrier/arrive.cc: Likewise.
* testsuite/30_threads/barrier/arrive_and_drop.cc: Likewise.
* testsuite/30_threads/barrier/arrive_and_wait.cc: Likewise.
* testsuite/30_threads/barrier/completion.cc: Likewise.
* testsuite/30_threads/condition_variable/members/clock_neg.cc:
Likewise.
* testsuite/30_threads/condition_variable_any/members/clock_neg.cc:
Likewise.
* testsuite/30_threads/condition_variable_any/stop_token/1.cc:
Likewise.
* testsuite/30_threads/condition_variable_any/stop_token/2.cc:
Likewise.
* testsuite/30_threads/future/members/clock_neg.cc: Likewise.
* testsuite/30_threads/headers/stop_token/synopsis.cc: Likewise.
* testsuite/30_threads/headers/thread/types_std_c++20.cc:
Likewise.
* testsuite/30_threads/jthread/1.cc: Likewise.
* testsuite/30_threads/jthread/100612.cc: Likewise.
* testsuite/30_threads/jthread/95989.cc: Likewise.
* testsuite/30_threads/jthread/jthread.cc: Likewise.
* testsuite/30_threads/jthread/version.cc: Likewise.
* testsuite/30_threads/latch/1.cc: Likewise.
* testsuite/30_threads/latch/2.cc: Likewise.
* testsuite/30_threads/latch/3.cc: Likewise.
* testsuite/30_threads/recursive_timed_mutex/try_lock_until/clock_neg.cc:
Likewise.
* testsuite/30_threads/semaphore/1.cc: Likewise.
* testsuite/30_threads/semaphore/2.cc: Likewise.
* testsuite/30_threads/semaphore/least_max_value_neg.cc:
Likewise.
* testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.
* testsuite/30_threads/shared_future/members/clock_neg.cc:
Likewise.
* testsuite/30_threads/shared_lock/locking/clock_neg.cc:
Likewise.
* testsuite/30_threads/shared_timed_mutex/try_lock_until/clock_neg.cc:
Likewise.
* testsuite/30_threads/stop_token/1.cc: Likewise.
* testsuite/30_threads/stop_token/2.cc: Likewise.
* testsuite/30_threads/stop_token/stop_callback.cc: Likewise.
* testsuite/30_threads/stop_token/stop_callback/deadlock.cc:
Likewise.
* testsuite/30_threads/stop_token/stop_callback/destructible_neg.cc:
Likewise.
* testsuite/30_threads/stop_token/stop_callback/invocable_neg.cc:
Likewise.
* testsuite/30_threads/stop_token/stop_callback/invoke.cc:
Likewise.
* testsuite/30_threads/stop_token/stop_source.cc: Likewise.
* testsuite/30_threads/stop_token/stop_source/assign.cc:
Likewise.
* testsuite/30_threads/stop_token/stop_token.cc: Likewise.
* testsuite/30_threads/stop_token/stop_token/stop_possible.cc:
Likewise.
* testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
* testsuite/30_threads/timed_mutex/try_lock_until/clock_neg.cc:
Likewise.
* testsuite/30_threads/unique_lock/locking/clock_neg.cc:
Likewise.

43 files changed:
libstdc++-v3/testsuite/30_threads/barrier/1.cc
libstdc++-v3/testsuite/30_threads/barrier/2.cc
libstdc++-v3/testsuite/30_threads/barrier/arrive.cc
libstdc++-v3/testsuite/30_threads/barrier/arrive_and_drop.cc
libstdc++-v3/testsuite/30_threads/barrier/arrive_and_wait.cc
libstdc++-v3/testsuite/30_threads/barrier/completion.cc
libstdc++-v3/testsuite/30_threads/condition_variable/members/clock_neg.cc
libstdc++-v3/testsuite/30_threads/condition_variable_any/members/clock_neg.cc
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/1.cc
libstdc++-v3/testsuite/30_threads/condition_variable_any/stop_token/2.cc
libstdc++-v3/testsuite/30_threads/future/members/clock_neg.cc
libstdc++-v3/testsuite/30_threads/headers/stop_token/synopsis.cc
libstdc++-v3/testsuite/30_threads/headers/thread/types_std_c++20.cc
libstdc++-v3/testsuite/30_threads/jthread/1.cc
libstdc++-v3/testsuite/30_threads/jthread/100612.cc
libstdc++-v3/testsuite/30_threads/jthread/95989.cc
libstdc++-v3/testsuite/30_threads/jthread/jthread.cc
libstdc++-v3/testsuite/30_threads/jthread/version.cc
libstdc++-v3/testsuite/30_threads/latch/1.cc
libstdc++-v3/testsuite/30_threads/latch/2.cc
libstdc++-v3/testsuite/30_threads/latch/3.cc
libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/clock_neg.cc
libstdc++-v3/testsuite/30_threads/semaphore/1.cc
libstdc++-v3/testsuite/30_threads/semaphore/2.cc
libstdc++-v3/testsuite/30_threads/semaphore/least_max_value_neg.cc
libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_until.cc
libstdc++-v3/testsuite/30_threads/shared_future/members/clock_neg.cc
libstdc++-v3/testsuite/30_threads/shared_lock/locking/clock_neg.cc
libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock_until/clock_neg.cc
libstdc++-v3/testsuite/30_threads/stop_token/1.cc
libstdc++-v3/testsuite/30_threads/stop_token/2.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/deadlock.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/destructible_neg.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invocable_neg.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_callback/invoke.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_source.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_source/assign.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_token.cc
libstdc++-v3/testsuite/30_threads/stop_token/stop_token/stop_possible.cc
libstdc++-v3/testsuite/30_threads/thread/id/operators_c++20.cc
libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/clock_neg.cc
libstdc++-v3/testsuite/30_threads/unique_lock/locking/clock_neg.cc

index 5b0bcb4a9ecc183498e478553389472c78b2fbe9..e7f62a17f24101a6f4377267abd9dfc2e9d77880 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-effective-target gthreads }
 
 #include <barrier>
index 198192017ea3cf23cf6530e44f36cfc79db095c6..d33597a0c4093eaa55e084e09610c25ee9bc97ae 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-effective-target gthreads }
 // { dg-require-effective-target hosted }
 
index 8e5c9adb849fe7681aa798b6ef3fb8d7d717ff08..77fa121883c1143dccbcb6ae9b8c80320e58ade0 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index 061b27cfcd782d9ccb5abfc7858e9072843d6fad..3ec60907264ee5c895b9fbeb086de415a972d7f8 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index a8d59c32efc948a7bbbb8a48420c8d9f546a3f5f..6ef9e6297a6c06d2b9515e236b0d0115db550f96 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index acb3d7a1d28e11f78802b7831e26a93c992acc0e..8848c3b488f5526b8197e87cad46f0f50f1668c5 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index f1f1cda8ad2b79179ee6830529c5e273fb2492b2..21bfc65bffd2d6f411bfd606ba1555d851a27658 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 <condition_variable>
 
index eeb0cd2555da330a032370bb9c0ed97e7f37d15d..b4a777db2e88fa43f9628c84a73129234efbb8a9 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 <condition_variable>
 
index 16dc911f583409693e955ad3e306ac66824b95b5..8c173977bcb2b1a902e20448b93521ca359a3660 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 <condition_variable>
 
index 3a226f981658995476778d2768e9291d18044a0e..754bd912eb4d604603916347f3bdbdc616c73193 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-effective-target hosted }
 
 #include <version>
index 6c2b9e2c21c413b6b32bb5b1307b4e3338dcdc15..4a791a81b515cccd6039784bff19fbfba1965dae 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 <future>
 
index e069b5467136f842c6bf0c5672f75f0ee20fa2a9..269e5fb4003b0892aa33eeb35c63ecc1fd30ff85 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-normal-namespace "" }
 
 #include <stop_token>
index 7e4b057f01232de8a446a864543d759b3a1cb944..dc9bcb2e9d454968146bf67139b851c6d91ca265 100644 (file)
@@ -1,5 +1,4 @@
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-do compile { target c++20 } }
 // { dg-require-gthreads "" }
 
 // Copyright (C) 2019-2023 Free Software Foundation, Inc.
index 0f8e91c0e6a908fa59e5987839487612b911f39c..e4063af378405e7b6d04ed60c086fcdcc12751ec 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-gthreads "" }
 
 #include <thread>
index d6c81706b8f541d2e6aa7a2ed99ed6488158d8f7..9b43618a4cc63ee4b57beddf88b9598c6b5aeb21 100644 (file)
@@ -1,4 +1,3 @@
-// { dg-options "-std=gnu++20" }
 // { dg-do compile { target c++20 } }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
index e98836d094531777f02510f52dee8eedf954b6b3..81de2fb0fecb1acc264ac38f659c068adda37809 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 } }
 // { dg-require-gthreads {} }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-additional-options "-static" { target static } }
index bfc1380d4370976358c454cd994a5e74607c9169..d734c5746b7de294a720f59a75ff26bfd5e4dbc0 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 } }
 // { dg-add-options libatomic }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-gthreads "" }
index f34e054eb74cb06d61fc4f423f009e9e6948e3a5..48241e981eacb1d62dc078730654377e83d7769a 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-gthreads "" }
 // { dg-require-effective-target hosted }
 
index 21df10bda15e7015535764c013607a8c991af903..6f4da1120129c0bbc8acc44e2ededbacde127e3b 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 <latch>
 
index 201ffe57eb8d1b7c18388d70539bfea6b29a554d..4ebd9e67ec782816e8fb468386a1f8efee9592dd 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-effective-target hosted }
 
 #include <version>
index 00170197fb945177f2a247cb1b1a3d4b6ffa0cfd..6052cb7097961975bdbaf79a840eddcf48f20be1 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 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index 264add0e9c76a4af35098e4284d29adfc1d6cfc5..bcd9081efaea406f2da5728e653811e4a240648d 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 <mutex>
 
index a38ae357688d03002e78fd10d1d6d0cb95ae95cc..f58e7f522dffe0af75e95842d59fec5b2e1aaa06 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 <semaphore>
 
index 1d2f9ce282a52a7e47c65630699e98f6411b31db..0bab29417acf3d8ff9da7c38426599d04fa40968 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-effective-target hosted }
 
 #include <version>
index afecff91f3654bb005114ffca67ed3f02fcf311d..be29a8ebb1869f27a682157d723fa7209c871376 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-effective-target pthread }
 // { dg-require-gthreads "" }
 
index bde0c0d39ef66714c39f0f07cf5435ea46cb58c2..4a7f97b1b9d89a5e638c23622acad9f8575e05b5 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 } }
 // { dg-require-gthreads "" }
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-add-options libatomic }
index 9d332db54b463d5a9cbd6b1b9def83f18fa097aa..c669af378f5a86ae17883a43bafbe3478c6dd919 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 <future>
 
index e5a8be75313ac417b7bb23282da2de22c550f417..9a2dde07e263cf51f7bc455dcd698352d73fda0b 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 <shared_mutex>
 
index 3f9b4ccd073b398476ff13820785556de9f615fb..7de99476cb84ff418b2268139fdd277bf0661364 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 <shared_mutex>
 
index 7e1fd781d0dbffe16188575bd013e3160ccf5cfb..099c6c1c271f634de9772d0c26ddbc48084e1040 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 <stop_token>
 
index 3a226f981658995476778d2768e9291d18044a0e..754bd912eb4d604603916347f3bdbdc616c73193 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-effective-target hosted }
 
 #include <version>
index 97550538976c6bd7ce0d9629452496aa7d2b1b4e..1bd16a184d5e3e7eca3f97a5c318218225a15558 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <functional>
index aa9c41c8ec1ef13844eecde2e2d8e09bc525a33a..d2b4d03ee14a80b615712325d15cb7284c70ca34 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <memory>
index f9fc640c746dfa78008435179ee5e3ef5a32c579..55a05964acd276b0a4118729b12ed1e65054ad6b 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 <stop_token>
 
index 6cf78b523867a507635d721cb2f72c1e1379a676..4e3cd348eda01026a1b0ab6648634bd4773a0393 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 <stop_token>
 
index 65d3346e3463acded4676c0fd2384c10efaba9ca..ad95e303b84982d5b3f061839b435f0fa8b57322 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <testsuite_hooks.h>
index fac94f370566bb0f365246ee6bf93b1425255483..a48e87c2e7a3e5a48731026eeae4cbd025134ff0 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <testsuite_hooks.h>
index 37599c158e03a7dfef5e21aa224d84ee6dbcd429..6e58d586740e8bb1bd52eaf8a42c165731fb7646 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <testsuite_hooks.h>
index 537b2c88b3b9ac2b86fe1d5066534622bd9dc502..91c893362f944cccfb72211966a764fdaf383443 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <testsuite_hooks.h>
index 7fd9119965a36c03268bcadc30f694ddbe405bdb..9d899896ed00deee455907b8df198d9f296ded67 100644 (file)
@@ -15,9 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-options "-std=gnu++2a" }
 // { dg-add-options libatomic }
-// { dg-do run { target c++2a } }
+// { dg-do run { target c++20 } }
 
 #include <stop_token>
 #include <memory>
index 667b6a3dcf5ae7c909025e6263cb6c442134ac01..a2dd21691e7a161e9d79e16e0a1af691236f1fd1 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) 2020-2023 Free Software Foundation, Inc.
 //
index 35655e5abb05af013d3c5ab88193e87c650a9944..1bae79d45c9adb543b7630103aef23f89abd2c8a 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 <mutex>
 
index dbfd8529d6652d21ae5183492518a9e3a568499e..110604b9917aaa30cd5f9f4dc9008943d1a579ad 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 <mutex>