libstdc++: Fix several _GLIBCXX_DEBUG tests
authorFrançois Dumont <fdumont@gcc.gnu.org>
Sat, 12 Dec 2020 17:02:47 +0000 (18:02 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 14 Dec 2020 06:46:25 +0000 (07:46 +0100)
libstdc++-v3/ChangeLog:

* testsuite/23_containers/array/debug/back2_neg.cc: target c++14 because assertion
for constexpr is disabled in C++11.
* testsuite/23_containers/array/debug/front2_neg.cc: Likewise.
* testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/multithreaded_swap.cc: Include <memory>
for shared_ptr.

libstdc++-v3/testsuite/23_containers/array/debug/back2_neg.cc
libstdc++-v3/testsuite/23_containers/array/debug/front2_neg.cc
libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc
libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc

index b14a3ec8c043ddc30ca6a48654fe2c6181a307a3..0066c671c42d035cda647df4378807a17b386542 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 //
 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++11 xfail *-*-* } }
+// { dg-do run { target c++14 xfail *-*-* } }
 
 #include <array>
 
index e099e6eb46b10c3189698d96171b254cdb86c13e..a6118cfce3a291c2754979a735c52b5db31f0182 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 //
 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++11 xfail *-*-* } }
+// { dg-do run { target c++14 xfail *-*-* } }
 
 #include <array>
 
index 4e93c8a7d689644b016af66ba6b16521a44d9ede..efb28d715e9f605718cfd46af60e4701dc54cc4e 100644 (file)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 //
 // { dg-options "-D_GLIBCXX_ASSERTIONS" }
-// { dg-do run { target c++11 xfail *-*-* } }
+// { dg-do run { target c++14 xfail *-*-* } }
 
 #include <array>
 
index 0d7951476446ff2a5e5404b5c8e5920436d48649..a0050ec764cba492c65033086cb8f95bff18e11d 100644 (file)
@@ -26,6 +26,7 @@
 // mode as it requires acquiring 2 locks at the same time.
 
 #include <vector>
+#include <memory>
 #include <thread>
 #include <functional>
 #include <testsuite_hooks.h>