[committed] libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests
Checks
Commit Message
Tested x86_64-linux. Pushed to trunk.
-- >8 --
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.
---
.../testsuite/23_containers/unordered_map/operations/1.cc | 1 +
.../testsuite/23_containers/unordered_multimap/operations/1.cc | 1 +
.../testsuite/23_containers/unordered_multiset/operations/1.cc | 1 +
.../testsuite/23_containers/unordered_set/operations/1.cc | 1 +
libstdc++-v3/testsuite/std/time/parse.cc | 2 +-
5 files changed, 5 insertions(+), 1 deletion(-)
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>