[libcxx] r187910 - N3644 support for vector<bool>

Marshall Clow mclow.lists at gmail.com
Wed Aug 7 13:53:38 PDT 2013


Author: marshall
Date: Wed Aug  7 15:53:38 2013
New Revision: 187910

URL: http://llvm.org/viewvc/llvm-project?rev=187910&view=rev
Log:
N3644 support for vector<bool>

Modified:
    libcxx/trunk/test/containers/sequences/vector.bool/iterators.pass.cpp

Modified: libcxx/trunk/test/containers/sequences/vector.bool/iterators.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/sequences/vector.bool/iterators.pass.cpp?rev=187910&r1=187909&r2=187910&view=diff
==============================================================================
--- libcxx/trunk/test/containers/sequences/vector.bool/iterators.pass.cpp (original)
+++ libcxx/trunk/test/containers/sequences/vector.bool/iterators.pass.cpp Wed Aug  7 15:53:38 2013
@@ -94,4 +94,16 @@ int main()
         C::const_iterator j;
     }
 #endif
+#if _LIBCPP_STD_VER > 11
+    { // N3664 testing
+        std::vector<bool>::iterator ii1{}, ii2{};
+        std::vector<bool>::iterator ii4 = ii1;
+        std::vector<bool>::const_iterator cii{};
+        assert ( ii1 == ii2 );
+        assert ( ii1 == ii4 );
+        assert ( ii1 == cii );
+        assert ( !(ii1 != ii2 ));
+        assert ( !(ii1 != cii ));
+    }
+#endif
 }





More information about the cfe-commits mailing list