]> gcc.gnu.org Git - gcc.git/blob - libstdc++-v3/testsuite/23_containers/vector/debug/n3644.cc
libstdc++: Fix N3344 behavior on _Safe_iterator::_M_can_advance
[gcc.git] / libstdc++-v3 / testsuite / 23_containers / vector / debug / n3644.cc
1 // { dg-do run { target c++11 } }
2 // { dg-require-debug-mode "" }
3
4 #include <vector>
5 #include <algorithm>
6
7 #include <testsuite_hooks.h>
8
9 int main()
10 {
11 std::vector<int>::iterator it{};
12 auto cpy = it;
13 std::advance(it, 0);
14 VERIFY( it == cpy );
15 return 0;
16 }
This page took 0.035935 seconds and 5 git commands to generate.