summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/stllike/hash_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/stllike/hash_test.cpp')
-rw-r--r--vespalib/src/tests/stllike/hash_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/vespalib/src/tests/stllike/hash_test.cpp b/vespalib/src/tests/stllike/hash_test.cpp
index 59081c0ab73..5643fac52bf 100644
--- a/vespalib/src/tests/stllike/hash_test.cpp
+++ b/vespalib/src/tests/stllike/hash_test.cpp
@@ -582,4 +582,11 @@ TEST("test that hash table clear does not resize hashtable") {
EXPECT_EQUAL(128u, a.capacity());
}
+TEST("test that hash nodes have expected sizes")
+{
+ EXPECT_EQUAL(8u, sizeof(hash_node<int8_t>));
+ EXPECT_EQUAL(8u, sizeof(hash_node<int32_t>));
+ EXPECT_EQUAL(16u, sizeof(hash_node<int64_t>));
+}
+
TEST_MAIN() { TEST_RUN_ALL(); }