Add std::copy_n __glibcxx_requires_can_increment checks.
authorFrançois Dumont <fdumont@gcc.gnu.org>
Sun, 6 Oct 2019 10:29:35 +0000 (10:29 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Sun, 6 Oct 2019 10:29:35 +0000 (10:29 +0000)
commit2c6374228bc0aef10b89e5dd9131dbf99477f753
tree76a7f261c398898ff59555a4ae872644d2b8f019
parentb1ca639a8692ac245753b10cb528e0db0f56dd57
Add std::copy_n __glibcxx_requires_can_increment checks.

* include/bits/stl_algo.h (copy_n): Add __glibcxx_requires_can_increment
debug checks.
* testsuite/25_algorithms/copy_n/debug/1_neg.cc: New.
* testsuite/25_algorithms/copy_n/debug/2_neg.cc: New.

From-SVN: r276636
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/copy_n/debug/1_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/copy_n/debug/2_neg.cc [new file with mode: 0644]