Improve portability of vector tests. Patch from STL@microsoft.com

llvm-svn: 272745
This commit is contained in:
Eric Fiselier 2016-06-15 01:44:22 +00:00
parent 78f8ce484f
commit 5d3e09ecc1
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ int main()
v.push_back(1);
assert(is_contiguous_container_asan_correct(v));
v.shrink_to_fit();
assert(v.capacity() == 200);
LIBCPP_ASSERT(v.capacity() == 200); // assumes libc++'s 2x growth factor
assert(v.size() == 101);
assert(is_contiguous_container_asan_correct(v));
}