aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-07 00:21:37 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-07 08:10:53 +0100
commitb1ca841b8972e546570553df3e61326c86135404 (patch)
treeb101082ac08e7d1839f6307ad7ea6478db098d6a
parentf12e26f3496275a432c6f6a326598db3441a9725 (diff)
downloadgcc-b1ca841b8972e546570553df3e61326c86135404.zip
gcc-b1ca841b8972e546570553df3e61326c86135404.tar.gz
gcc-b1ca841b8972e546570553df3e61326c86135404.tar.bz2
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.
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc1
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc1
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc1
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc1
-rw-r--r--libstdc++-v3/testsuite/std/time/parse.cc2
5 files changed, 5 insertions, 1 deletions
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 cfeca60..835f845 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 7e3867f..988a666 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 7db4d12..91b0f87 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 b2f1399..dea21df 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 86222d5..0ef56cf 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>