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:
parent
5560d026a6
commit
0273c10e7b
@ -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
|
||||
|
@ -16,7 +16,6 @@
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// { dg-do run { xfail *-*-* } }
|
||||
// { dg-options "-Wno-deprecated" }
|
||||
|
||||
#include <vector>
|
||||
#include <debug/vector>
|
||||
|
@ -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> >
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user