N3644 support for vector<bool>

llvm-svn: 187910
This commit is contained in:
Marshall Clow 2013-08-07 20:53:38 +00:00
parent 07186a7d2d
commit 798061ded6
1 changed files with 12 additions and 0 deletions

View File

@ -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
}