]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 6 Sep 2023 23:21:37 +0000 (00:21 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 7 Sep 2023 07:10:53 +0000 (08:10 +0100)
These tests do not run by default, because the c++20 effective target
selector isn't matched.

libstdc++-v3/ChangeLog:

* testsuite/23_containers/unordered_map/operations/1.cc: Add
dg-options for C++20 mode.
* testsuite/23_containers/unordered_multimap/operations/1.cc:
Likewise.
* testsuite/23_containers/unordered_multiset/operations/1.cc:
Likewise.
* testsuite/23_containers/unordered_set/operations/1.cc:
Likewise.
* testsuite/std/time/parse.cc: Move dg-options before dg-do.

libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc
libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc
libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc
libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc
libstdc++-v3/testsuite/std/time/parse.cc

index cfeca606c55a496fd788c53512ca9c51c488a98c..835f845621b1954a084ddfe5fa3e9fd048a395c1 100644 (file)
@@ -15,6 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <unordered_map>
index 7e3867f345b663cf72077088eb4c8fcd60700282..988a66695ef8564348dae3e0e6f6442fd82ab1fa 100644 (file)
@@ -15,6 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <unordered_map>
index 7db4d129c52e4c3581e547c129b147d9188db083..91b0f87cab80a31151a80383f6cf5aa5068e8296 100644 (file)
@@ -15,6 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <unordered_set>
index b2f13990b56e7c0e8ca088a50612d7562f4ff3f9..dea21df7bcbbe3ea7d8a6275223fbee311f229b2 100644 (file)
@@ -15,6 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+// { dg-options "-std=gnu++20" }
 // { dg-do run { target c++20 } }
 
 #include <unordered_set>
index 86222d595967a62916542b5c7e1d33b4afe9c872..0ef56cf1cfa9dd91b3fa904215b8119b3cdbb312 100644 (file)
@@ -1,5 +1,5 @@
-// { dg-do run { target c++20 } }
 // { dg-options "-std=gnu++20" }
+// { dg-do run { target c++20 } }
 
 #include <chrono>
 #include <sstream>