From 56a2e5344ef0c5319471ccd5c10fa372b6e607fc Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Sun, 30 Apr 2023 11:48:50 -0400 Subject: [PATCH] remove `sizeof` checks which differ between windows and linux. --- tests/raw_hash_set_test.cc | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/tests/raw_hash_set_test.cc b/tests/raw_hash_set_test.cc index feb9709..91946a4 100644 --- a/tests/raw_hash_set_test.cc +++ b/tests/raw_hash_set_test.cc @@ -389,40 +389,6 @@ struct BadTable : raw_hash_set, using Base::Base; }; -#if PHMAP_HAVE_STD_STRING_VIEW -TEST(Table, EmptyFunctorOptimization) { - static_assert(std::is_empty>::value, ""); - static_assert(std::is_empty>::value, ""); - - struct MockTable { - void* ctrl; - void* slots; - size_t size; - size_t capacity; - size_t growth_left; - void* infoz; - }; - struct StatelessHash { - size_t operator()(std::string_view) const { return 0; } - }; - struct StatefulHash : StatelessHash { - size_t dummy; - }; - - EXPECT_EQ( - sizeof(MockTable), - sizeof( - raw_hash_set, std::allocator>)); - - EXPECT_EQ( - sizeof(MockTable) + sizeof(StatefulHash), - sizeof( - raw_hash_set, std::allocator>)); -} -#endif - TEST(Table, Empty) { IntTable t; EXPECT_EQ(0, t.size());