Chandler Carruth ba1f580f33 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
2012-07-30 22:17:52 +00:00
..
2012-07-30 18:34:14 +00:00
2012-07-19 04:50:12 +00:00
2012-07-27 21:41:59 +00:00
2012-07-30 20:09:37 +00:00
2012-07-25 17:18:59 +00:00
2012-07-24 21:40:17 +00:00
2012-07-19 00:01:00 +00:00
2012-06-27 17:10:33 +00:00
2012-06-23 12:14:23 +00:00
2012-05-16 22:08:58 +00:00