From: François Dumont Date: Sat, 12 Dec 2020 17:02:47 +0000 (+0100) Subject: libstdc++: Fix several _GLIBCXX_DEBUG tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e56e4d9566ce99707befa88bf4d11c74ec45c10;p=gcc.git 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 for shared_ptr. --- 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 b14a3ec8c04..0066c671c42 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 @@ // . // // { dg-options "-D_GLIBCXX_ASSERTIONS" } -// { dg-do run { target c++11 xfail *-*-* } } +// { dg-do run { target c++14 xfail *-*-* } } #include 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 e099e6eb46b..a6118cfce3a 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 @@ // . // // { dg-options "-D_GLIBCXX_ASSERTIONS" } -// { dg-do run { target c++11 xfail *-*-* } } +// { dg-do run { target c++14 xfail *-*-* } } #include 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 4e93c8a7d68..efb28d715e9 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 @@ // . // // { dg-options "-D_GLIBCXX_ASSERTIONS" } -// { dg-do run { target c++11 xfail *-*-* } } +// { dg-do run { target c++14 xfail *-*-* } } #include 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 0d795147644..a0050ec764c 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 +#include #include #include #include