From 579a6581292b58a5c55e01e14a915fd5e7c8cbdc Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 25 Jan 2023 18:56:37 +0200 Subject: [PATCH] Update max_align_test.cpp --- test/max_align_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/max_align_test.cpp b/test/max_align_test.cpp index 6804576..113e27e 100644 --- a/test/max_align_test.cpp +++ b/test/max_align_test.cpp @@ -54,9 +54,16 @@ int main() BOOST_TEST_GE( boost::core::max_align, boost::alignment_of::value ); #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 ) ); +# endif #endif return boost::report_errors();