diff --git a/test/float_typedef_test.cpp b/test/float_typedef_test.cpp index e6f8a23..0d6b04f 100644 --- a/test/float_typedef_test.cpp +++ b/test/float_typedef_test.cpp @@ -17,11 +17,17 @@ template struct align } }; +template struct align2 +{ + char _; + T v; +}; + template void test_buffer( U const & y, bool aligned ) { align x( y ); - BOOST_TEST_EQ( sizeof(x), aligned? 2 * sizeof(U): 1 + sizeof(U) ); + BOOST_TEST_EQ( sizeof(x), aligned? sizeof( align2 ): 1 + sizeof(U) ); BOOST_TEST_EQ( x.v.value(), y ); }