// Copyright 2023 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #include #include #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 40900 # define BOOST_NO_STD_MAX_ALIGN_T #endif struct X { }; int main() { BOOST_TEST_EQ( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); #if !defined(BOOST_NO_LONG_LONG) BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); #endif #if defined(BOOST_HAS_INT128) BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); #endif BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); #if defined(BOOST_CORE_HAS_FLOAT128) BOOST_TEST_GE( boost::core::max_align, boost::alignment_of<__float128>::value ); #endif BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); #if !defined(BOOST_NO_CXX11_ALIGNOF) && !defined(BOOST_NO_STD_MAX_ALIGN_T) BOOST_TEST_GE( boost::core::max_align, alignof( std::max_align_t ) ); #endif return boost::report_errors(); }