]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/25_algorithms/copy_backward/constrained.cc
libstdc++: -D_GLIBCXX_DEBUG fixes in the constrained algos tests
authorPatrick Palka <ppalka@redhat.com>
Thu, 27 Feb 2020 15:35:08 +0000 (10:35 -0500)
committerPatrick Palka <ppalka@redhat.com>
Thu, 27 Feb 2020 17:47:17 +0000 (12:47 -0500)
commit10a32d479861c3a39987d3468f6a400e907499a2
tree7438b7765ea450b31f100a6b4fbb606c1b3a9828
parentcfeef9acd2cec93ed6338cc0d9fad98bdc0f7599
libstdc++: -D_GLIBCXX_DEBUG fixes in the constrained algos tests

This fixes the failures in the constrained algos tests when they are run in
debug mode.

libstdc++-v3/ChangeLog:

* testsuite/25_algorithms/copy/constrained.cc: Don't assume that the
base() of a vector<>::iterator is a pointer.
* testsuite/25_algorithms/copy_backward/constrained.cc: Likewise.
* testsuite/25_algorithms/move/constrained.cc: Likewise.
* testsuite/25_algorithms/move_backward/constrained.cc: Likewise.
* testsuite/25_algorithms/inplace_merge/constrained.cc: Use foo.data()
instead of &foo[0].
* testsuite/25_algorithms/partial_sort/constrained.cc: Likewise.
* testsuite/25_algorithms/partial_sort_copy/constrained.cc: Likewise.
* testsuite/25_algorithms/shuffle/constrained.cc: Likewise.
* testsuite/25_algorithms/sort/constrained.cc: Likewise.
* testsuite/25_algorithms/stable_sort/constrained.cc: Likewise.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/25_algorithms/copy/constrained.cc
libstdc++-v3/testsuite/25_algorithms/copy_backward/constrained.cc
libstdc++-v3/testsuite/25_algorithms/inplace_merge/constrained.cc
libstdc++-v3/testsuite/25_algorithms/move/constrained.cc
libstdc++-v3/testsuite/25_algorithms/move_backward/constrained.cc
libstdc++-v3/testsuite/25_algorithms/partial_sort/constrained.cc
libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/constrained.cc
libstdc++-v3/testsuite/25_algorithms/shuffle/constrained.cc
libstdc++-v3/testsuite/25_algorithms/sort/constrained.cc
libstdc++-v3/testsuite/25_algorithms/stable_sort/constrained.cc