forked from OSchip/llvm-project
Fix unittests: resize() -> reserve()
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 264029
This commit is contained in:
parent
d595b08998
commit
844baa240a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue