diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-07-30 22:17:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-07-30 22:17:52 +0000 |
commit | ba1f580f338e12c47a600050f7a77fae579acf93 (patch) | |
tree | 15abdb51b6fe536e90c4db85d16d83992ba5f8dd /autoconf | |
parent | 20f13c50d88560d75129f4a691fe6b477d04dc70 (diff) | |
download | external_llvm-ba1f580f338e12c47a600050f7a77fae579acf93.zip external_llvm-ba1f580f338e12c47a600050f7a77fae579acf93.tar.gz external_llvm-ba1f580f338e12c47a600050f7a77fae579acf93.tar.bz2 |
Move the SmallVector unit tests to be type-parameterized so that we can
test more than a single instantiation of SmallVector.
Add testing for 0, 1, 2, and 4 element sized "small" buffers. These
appear to be essentially untested in the unit tests until now.
Fix several tests to be robust in the face of a '0' small buffer. As
a consequence of this size buffer, the growth patterns are actually
observable in the test -- yes this means that many tests never caused
a grow to occur before. For some tests I've merely added a reserve call
to normalize behavior. For others, the growth is actually interesting,
and so I captured the fact that growth would occur and adjusted the
assertions to not assume how rapidly growth occured.
Also update the specialization for a '0' small buffer length to have all
the same interface points as the normal small vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
0 files changed, 0 insertions, 0 deletions