From 0273c10e7b1d6824932eb6f58d72fd81139154f0 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 15 Sep 2016 11:18:38 +0100 Subject: [PATCH] Fix testsuite to not increment bool * testsuite/23_containers/vector/debug/insert6_neg.cc: Remove -Wno-deprecated. * testsuite/util/debug/checks.h (generate_unique): Specialize. From-SVN: r240157 --- libstdc++-v3/ChangeLog | 6 ++++++ .../23_containers/vector/debug/insert6_neg.cc | 1 - libstdc++-v3/testsuite/util/debug/checks.h | 13 +++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cb6e964f69a..1b22ebba544 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2016-09-15 Jonathan Wakely + + * testsuite/23_containers/vector/debug/insert6_neg.cc: Remove + -Wno-deprecated. + * testsuite/util/debug/checks.h (generate_unique): Specialize. + 2016-09-14 Marek Polacek * testsuite/23_containers/vector/debug/insert6_neg.cc: Use diff --git a/libstdc++-v3/testsuite/23_containers/vector/debug/insert6_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/debug/insert6_neg.cc index c939c2203fc..9893293613f 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/debug/insert6_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/debug/insert6_neg.cc @@ -16,7 +16,6 @@ // . // // { dg-do run { xfail *-*-* } } -// { dg-options "-Wno-deprecated" } #include #include diff --git a/libstdc++-v3/testsuite/util/debug/checks.h b/libstdc++-v3/testsuite/util/debug/checks.h index 5a40608acaa..872fa1a5fe4 100644 --- a/libstdc++-v3/testsuite/util/debug/checks.h +++ b/libstdc++-v3/testsuite/util/debug/checks.h @@ -53,6 +53,19 @@ namespace __gnu_test } }; + template<> + struct generate_unique + { + typedef bool value_type; + + value_type build() + { + static value_type _S_; + _S_ = !_S_; + return _S_; + } + }; + template struct generate_unique > { -- 2.30.2