mirror of
https://github.com/boostorg/core.git
synced 2025-05-10 07:13:54 +00:00
Update max_align_test.cpp
This commit is contained in:
parent
4c7f35613e
commit
579a658129
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user