* testsuite/23_containers/vector/debug/insert6_neg.cc: Remove
-Wno-deprecated.
* testsuite/util/debug/checks.h (generate_unique<bool>): Specialize.
From-SVN: r240157
+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
// <http://www.gnu.org/licenses/>.
//
// { dg-do run { xfail *-*-* } }
-// { dg-options "-Wno-deprecated" }
#include <vector>
#include <debug/vector>
}
};
+ 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> >
{