mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
Make this test more lenient; with SmallVector now using actually
aligned storage, the capacity may be more than what is explicitly requested. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1ec31dca5
commit
5ffc72e7ce
@ -384,7 +384,7 @@ TEST_F(SmallVectorTest, ConstVectorTest) {
|
|||||||
// Direct array access.
|
// Direct array access.
|
||||||
TEST_F(SmallVectorTest, DirectVectorTest) {
|
TEST_F(SmallVectorTest, DirectVectorTest) {
|
||||||
EXPECT_EQ(0u, theVector.size());
|
EXPECT_EQ(0u, theVector.size());
|
||||||
EXPECT_EQ(4u, theVector.capacity());
|
EXPECT_LE(4u, theVector.capacity());
|
||||||
EXPECT_EQ(0, Constructable::getNumConstructorCalls());
|
EXPECT_EQ(0, Constructable::getNumConstructorCalls());
|
||||||
theVector.end()[0] = 1;
|
theVector.end()[0] = 1;
|
||||||
theVector.end()[1] = 2;
|
theVector.end()[1] = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user