Account for different memory usage with libc++.
@@ -149,8 +149,13 @@ TEST("require that we test with trivial and non-trivial types")
}
TEST_F("control static sizes", NumberFixture(3)) {
+#ifdef _LIBCPP_VERSION
+ EXPECT_EQUAL(392u, sizeof(f.store));
+ EXPECT_EQUAL(296u, sizeof(NumberFixture::ArrayStoreType::DataStoreType));
+#else
EXPECT_EQUAL(424u, sizeof(f.store));
EXPECT_EQUAL(328u, sizeof(NumberFixture::ArrayStoreType::DataStoreType));
+#endif
EXPECT_EQUAL(64u, sizeof(NumberFixture::ArrayStoreType::SmallArrayType));
MemoryUsage usage = f.store.getMemoryUsage();
EXPECT_EQUAL(960u, usage.allocatedBytes());
