diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-09-15 11:18:38 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-09-15 11:18:38 +0100 |
commit | 0273c10e7b1d6824932eb6f58d72fd81139154f0 (patch) | |
tree | 04948b6f3af9cae7a70e4a950a797d4368c17769 | |
parent | 5560d026a64962d45a9f17b3a2928e1f0922a0f5 (diff) | |
download | gcc-0273c10e7b1d6824932eb6f58d72fd81139154f0.tar.gz |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/vector/debug/insert6_neg.cc | 1 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/util/debug/checks.h | 13 |
3 files changed, 19 insertions, 1 deletions
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 <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 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 @@ // <http://www.gnu.org/licenses/>. // // { dg-do run { xfail *-*-* } } -// { dg-options "-Wno-deprecated" } #include <vector> #include <debug/vector> 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<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> > { |