diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2020-12-12 18:02:47 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2020-12-14 07:46:25 +0100 |
commit | 8e56e4d9566ce99707befa88bf4d11c74ec45c10 (patch) | |
tree | 8b934b12921143e2c468aa1231ba5608bcd0697f /libstdc++-v3 | |
parent | b4cdc2a3d332b6d350fa7d334c28d54544c7777e (diff) | |
download | gcc-8e56e4d9566ce99707befa88bf4d11c74ec45c10.zip gcc-8e56e4d9566ce99707befa88bf4d11c74ec45c10.tar.gz gcc-8e56e4d9566ce99707befa88bf4d11c74ec45c10.tar.bz2 |
libstdc++: Fix several _GLIBCXX_DEBUG tests
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.
Diffstat (limited to 'libstdc++-v3')
4 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/array/debug/back2_neg.cc b/libstdc++-v3/testsuite/23_containers/array/debug/back2_neg.cc index b14a3ec..0066c67 100644 --- a/libstdc++-v3/testsuite/23_containers/array/debug/back2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/array/debug/back2_neg.cc @@ -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> diff --git a/libstdc++-v3/testsuite/23_containers/array/debug/front2_neg.cc b/libstdc++-v3/testsuite/23_containers/array/debug/front2_neg.cc index e099e6e..a6118cf 100644 --- a/libstdc++-v3/testsuite/23_containers/array/debug/front2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/array/debug/front2_neg.cc @@ -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> diff --git a/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc b/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc index 4e93c8a..efb28d7 100644 --- a/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc @@ -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> diff --git a/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc b/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc index 0d79514..a0050ec 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/debug/multithreaded_swap.cc @@ -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> |