From 59c3dac1519da63d6947357db1af27378c101c85 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Mon, 21 Jan 2013 13:46:49 +0100 Subject: [PATCH] added comment --- UnitTests/Philadelphia/structure-size-test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UnitTests/Philadelphia/structure-size-test.cpp b/UnitTests/Philadelphia/structure-size-test.cpp index 2599d1aa14..ecbd3e95e1 100644 --- a/UnitTests/Philadelphia/structure-size-test.cpp +++ b/UnitTests/Philadelphia/structure-size-test.cpp @@ -74,6 +74,14 @@ BOOST_AUTO_TEST_CASE (tst_df_marker) { BOOST_CHECK_EQUAL(24, s); BOOST_CHECK_EQUAL(true, s % 8 == 0); + + + BOOST_CHECK_EQUAL(0, offsetof(struct TRI_df_marker_s, _size)); + BOOST_CHECK_EQUAL(4, offsetof(struct TRI_df_marker_s, _crc)); + BOOST_CHECK_EQUAL(8, offsetof(struct TRI_df_marker_s, _type)); + + // TODO: fix alignment in struct TRI_df_marker_s. it is currently not portable! + // BOOST_CHECK_EQUAL(16, offsetof(struct TRI_df_marker_s, _tick)); } ////////////////////////////////////////////////////////////////////////////////