From 84f15c4fb2369852dad25b9cfc38b4c7876cf122 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 6 Oct 2020 22:00:35 +0300 Subject: [PATCH] Add more sizeof tests to packed_buffer_test --- test/packed_buffer_test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/packed_buffer_test.cpp b/test/packed_buffer_test.cpp index d3551f2..065bd74 100644 --- a/test/packed_buffer_test.cpp +++ b/test/packed_buffer_test.cpp @@ -26,7 +26,11 @@ struct X int main() { - BOOST_TEST_EQ( sizeof( X ), 12 ); + BOOST_TEST_EQ( sizeof(big_uint16_buf_t), 2 ); + BOOST_TEST_EQ( sizeof(double), 8 ); + BOOST_TEST_EQ( sizeof(little_uint16_buf_t), 2 ); + BOOST_TEST_EQ( sizeof(X), 12 ); + return boost::report_errors(); }