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.
This commit is contained in:
François Dumont 2020-12-12 18:02:47 +01:00
parent b4cdc2a3d3
commit 8e56e4d956
4 changed files with 4 additions and 3 deletions

View 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>

View 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>

View 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>

View 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>