Debian Codegraph @

libstdc++-v3/testsuite/24_iterators/counted_iterator/101527.cc

raw
1 // { dg-do compile { target c++20 } }
2
3 // PR libstdc++/101527
4 // implementation of std::common_iterator and std::counted_iterator's
5 // operator== seems to be wrong
6
7 #include <iterator>
8
9 bool test_pr101527()
10 {
11 std::counted_iterator<int*> it1;
12 std::counted_iterator<const int*> it2;
13 return it1 == it2;
14 }