diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-13 11:51:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-13 11:51:46 +0300 |
commit | a19584a4715444721f8f625f0b5481e67c0d97ae (patch) | |
tree | 02e4d3d1ceb16c76448d2b2889a656d6807aabbe /tests/gtests/blenlib/BLI_vector_test.cc | |
parent | 644a915b1b096be816ddc50050a70d90a2787191 (diff) |
BLI: fix constructor regression for Vector and Array
This was introduced in rB403384998a6bb5f428e15ced5.
Diffstat (limited to 'tests/gtests/blenlib/BLI_vector_test.cc')
-rw-r--r-- | tests/gtests/blenlib/BLI_vector_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gtests/blenlib/BLI_vector_test.cc b/tests/gtests/blenlib/BLI_vector_test.cc index 92fb12fb4e5..a020611aed6 100644 --- a/tests/gtests/blenlib/BLI_vector_test.cc +++ b/tests/gtests/blenlib/BLI_vector_test.cc @@ -651,4 +651,13 @@ TEST(vector, OveralignedValues) } } +TEST(vector, ConstructVoidPointerVector) +{ + int a; + float b; + double c; + Vector<void *> vec = {&a, &b, &c}; + EXPECT_EQ(vec.size(), 3); +} + } // namespace blender |