[gcc r13-8024] libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests
Jonathan Wakely
redi@gcc.gnu.org
Thu Nov 9 08:09:55 GMT 2023
https://gcc.gnu.org/g:a690ac89a1f1b3a25426b190f57e0512b8b7f3b5
commit r13-8024-ga690ac89a1f1b3a25426b190f57e0512b8b7f3b5
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.
(cherry picked from commit b1ca841b8972e546570553df3e61326c86135404)
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 +
4 files changed, 4 insertions(+)
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 cfeca606c55..835f845621b 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 7e3867f345b..988a66695ef 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 7db4d129c52..91b0f87cab8 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 b2f13990b56..dea21df7bcb 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>
More information about the Libstdc++-cvs
mailing list