From 3bfee8baa66b00eacfb5ba3d501ef6e37e561068 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 5 Feb 2005 12:49:41 +0000 Subject: [PATCH] Added a couple of extra tests [SVN r27146] --- test/aligned_storage_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/aligned_storage_test.cpp b/test/aligned_storage_test.cpp index be89886..3752b67 100644 --- a/test/aligned_storage_test.cpp +++ b/test/aligned_storage_test.cpp @@ -31,6 +31,14 @@ void check(const T&) #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION BOOST_CHECK(::tt::is_pod::value == true); #endif + + typedef typename tt::aligned_storage::type t3; + BOOST_MESSAGE(typeid(t3).name()); + BOOST_CHECK(::tt::alignment_of::value == ::boost::alignment_of< ::boost::detail::max_align>::value); + BOOST_CHECK((sizeof(t3) % T::value) == 0); +#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION + BOOST_CHECK(::tt::is_pod::value == true); +#endif } TT_TEST_BEGIN(type_with_alignment) @@ -59,6 +67,7 @@ check(tt::integral_constant::value>()); check(tt::integral_constant::value>()); check(tt::integral_constant::value>()); check(tt::integral_constant::value>()); +check(tt::integral_constant::value>()); TT_TEST_END