Fix unittests: resize() -> reserve()

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 264029
This commit is contained in:
Mehdi Amini 2016-03-22 07:35:51 +00:00
parent d595b08998
commit 844baa240a
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ TYPED_TEST(DenseMapTest, ConstIteratorTest) {
TEST(DenseMapCustomTest, ResizeTest) {
for (unsigned Size = 16; Size < 32; ++Size) {
DenseMap<unsigned, unsigned> Map;
Map.resize(Size);
Map.reserve(Size);
unsigned MemorySize = Map.getMemorySize();
for (unsigned i = 0; i < Size; ++i)
Map[i] = i;