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:
parent
f109605585
commit
02e7af1122
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user