Fix testsuite to not increment bool

* testsuite/23_containers/vector/debug/insert6_neg.cc: Remove
	-Wno-deprecated.
	* testsuite/util/debug/checks.h (generate_unique<bool>): Specialize.

From-SVN: r240157
This commit is contained in:
Jonathan Wakely 2016-09-15 11:18:38 +01:00 committed by Jonathan Wakely
parent 5560d026a6
commit 0273c10e7b
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-09-15 Jonathan Wakely <jwakely@redhat.com>
* testsuite/23_containers/vector/debug/insert6_neg.cc: Remove
-Wno-deprecated.
* testsuite/util/debug/checks.h (generate_unique<bool>): Specialize.
2016-09-14 Marek Polacek <polacek@redhat.com>
* testsuite/23_containers/vector/debug/insert6_neg.cc: Use

View File

@ -16,7 +16,6 @@
// <http://www.gnu.org/licenses/>.
//
// { dg-do run { xfail *-*-* } }
// { dg-options "-Wno-deprecated" }
#include <vector>
#include <debug/vector>

View File

@ -53,6 +53,19 @@ namespace __gnu_test
}
};
template<>
struct generate_unique<bool>
{
typedef bool value_type;
value_type build()
{
static value_type _S_;
_S_ = !_S_;
return _S_;
}
};
template<typename _Tp1, typename _Tp2>
struct generate_unique<std::pair<_Tp1, _Tp2> >
{