[PATCH] D26626: [libcxx] [test] Fix an improper assumption about Null Forward Iterators.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 14 12:09:06 PST 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

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

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


https://reviews.llvm.org/D26626

Files:
  test/std/containers/sequences/list/iterators.pass.cpp


Index: test/std/containers/sequences/list/iterators.pass.cpp
===================================================================
--- test/std/containers/sequences/list/iterators.pass.cpp
+++ test/std/containers/sequences/list/iterators.pass.cpp
@@ -138,7 +138,6 @@
 #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 @@
         assert ( (cii == ii1 ));
         assert (!(ii1 != cii ));
         assert (!(cii != ii1 ));
-
-        assert ( ii1 != c.cbegin());
-        assert ( cii != c.begin());
     }
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26626.77858.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161114/cc9449fa/attachment.bin>


More information about the cfe-commits mailing list