libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators

libstdc++-v3/ChangeLog:

	* testsuite/23_containers/deque/debug/98466.cc: Make it pre-C++11
	compliant.
This commit is contained in:
François Dumont 2021-01-14 22:41:23 +01:00
parent f109605585
commit 02e7af1122

View File

@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
// { dg-do run }
#include <debug/deque>
#include <testsuite_hooks.h>
@ -24,10 +24,12 @@
void test01()
{
__gnu_debug::deque<int>::iterator it{};
typedef typename __gnu_debug::deque<int>::iterator It;
It it = It();
VERIFY( it == it );
__gnu_debug::deque<int>::const_iterator cit{};
typedef typename __gnu_debug::deque<int>::const_iterator Cit;
Cit cit = Cit();
VERIFY( cit == cit );
}