Update max_align_test.cpp

This commit is contained in:
Peter Dimov 2023-01-25 18:56:37 +02:00
parent 4c7f35613e
commit 579a658129

View File

@ -54,9 +54,16 @@ int main()
BOOST_TEST_GE( boost::core::max_align, boost::alignment_of<void (X::*)()>::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of<void (X::*)()>::value );
#if !defined(BOOST_NO_CXX11_ALIGNOF) && !defined(BOOST_NO_STD_MAX_ALIGN_T) #if !defined(BOOST_NO_CXX11_ALIGNOF) && !defined(BOOST_NO_STD_MAX_ALIGN_T)
# if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 70000
// libstdc++ 7 adds __float128 to std::max_align_t, but we always have it
BOOST_TEST_GE( boost::core::max_align, alignof( std::max_align_t ) );
# else
BOOST_TEST_EQ( boost::core::max_align, alignof( std::max_align_t ) ); BOOST_TEST_EQ( boost::core::max_align, alignof( std::max_align_t ) );
# endif
#endif #endif
return boost::report_errors(); return boost::report_errors();