public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3772] libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests
@ 2023-09-07  7:11 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-09-07  7:11 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:b1ca841b8972e546570553df3e61326c86135404

commit r14-3772-gb1ca841b8972e546570553df3e61326c86135404
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Sep 7 00:21:37 2023 +0100

    libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests
    
    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.

Diff:
---
 libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc      | 1 +
 libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc | 1 +
 libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc | 1 +
 libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc      | 1 +
 libstdc++-v3/testsuite/std/time/parse.cc                                | 2 +-
 5 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc
index cfeca606c55a..835f845621b1 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc
index 7e3867f345b6..988a66695ef8 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc
index 7db4d129c52e..91b0f87cab80 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc
index b2f13990b56e..dea21df7bcbb 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/std/time/parse.cc b/libstdc++-v3/testsuite/std/time/parse.cc
index 86222d595967..0ef56cf1cfa9 100644
--- a/libstdc++-v3/testsuite/std/time/parse.cc
+++ b/libstdc++-v3/testsuite/std/time/parse.cc
@@ -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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-07  7:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07  7:11 [gcc r14-3772] libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).