diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2021-01-14 22:41:23 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2021-01-14 22:43:26 +0100 |
commit | 02e7af1122c1aae7c4c764aaa078f72a54645c06 (patch) | |
tree | 821189602788554bc1b1c3cfc6bbcd18bacc3d04 | |
parent | f10960558540636800cf5d3d6355969621fbc17e (diff) | |
download | gcc-02e7af1122c1aae7c4c764aaa078f72a54645c06.zip gcc-02e7af1122c1aae7c4c764aaa078f72a54645c06.tar.gz gcc-02e7af1122c1aae7c4c764aaa078f72a54645c06.tar.bz2 |
libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators
libstdc++-v3/ChangeLog:
* testsuite/23_containers/deque/debug/98466.cc: Make it pre-C++11
compliant.
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc b/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc index 720977e..c2d7933 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc @@ -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 ); } |