[libcxx] r289462 - [libcxx] [test] Fix an improper assumption about Null Forward Iterators.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 12 11:50:15 PST 2016


Author: stl_msft
Date: Mon Dec 12 13:50:14 2016
New Revision: 289462

URL: http://llvm.org/viewvc/llvm-project?rev=289462&view=rev
Log:
[libcxx] [test] Fix an improper assumption about Null Forward Iterators.

Value-initialized iterators still can't be compared to those with parents.

Fixes D26626.

Modified:
    libcxx/trunk/test/std/containers/sequences/list/iterators.pass.cpp

Modified: libcxx/trunk/test/std/containers/sequences/list/iterators.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/list/iterators.pass.cpp?rev=289462&r1=289461&r2=289462&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/list/iterators.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/list/iterators.pass.cpp Mon Dec 12 13:50:14 2016
@@ -138,7 +138,6 @@ int main()
 #endif
 #if TEST_STD_VER > 11
     {
-        std::list<int> c;
         std::list<int>::iterator ii1{}, ii2{};
         std::list<int>::iterator ii4 = ii1;
         std::list<int>::const_iterator cii{};
@@ -151,9 +150,6 @@ int main()
         assert ( (cii == ii1 ));
         assert (!(ii1 != cii ));
         assert (!(cii != ii1 ));
-
-        assert ( ii1 != c.cbegin());
-        assert ( cii != c.begin());
     }
 #endif
 




More information about the cfe-commits mailing list