[committed] libstdc++: Re-enable some pb_ds tests for C++17 and later
Checks
Commit Message
I disabled these tests for C++17 in r7-2679-gc42966921a2897 due to
ambiguous string conversions in __gnu_pbds::test::basic_type. I think
those ambiguous conversions were due to LWG 2946, so would have gone
away with r8-3329-g4cf5930fdc5765 (fixing PR libstdc++/79162).
In any case, the tests all compile as C++17 now so let's re-enable them.
libstdc++-v3/ChangeLog:
* testsuite/ext/pb_ds/regression/hash_map_rand.cc: Remove c++17
target selector.
* testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/list_update_map_rand.cc:
Likewise.
* testsuite/ext/pb_ds/regression/list_update_set_rand.cc:
Likewise.
* testsuite/ext/pb_ds/regression/priority_queue_rand.cc:
Likewise.
* testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
* testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
---
Tested x86_64-linux. Pushed to trunk.
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_map_rand.cc | 2 +-
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_set_rand.cc | 2 +-
.../testsuite/ext/pb_ds/regression/list_update_map_rand.cc | 2 +-
.../testsuite/ext/pb_ds/regression/list_update_set_rand.cc | 2 +-
.../testsuite/ext/pb_ds/regression/priority_queue_rand.cc | 2 +-
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand.cc | 2 +-
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand.cc | 2 +-
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_map_rand.cc | 2 +-
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_set_rand.cc | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.
@@ -1,5 +1,5 @@
// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
-// { dg-do run { target { ! c++17 } } }
+// { dg-do run }
// { dg-require-time "" }
// { dg-require-cstdint "" }
// This can take long on simulators, timing out the test.