Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / atomic / test / native_api.cpp
index a67d99b..faefc24 100644 (file)
@@ -45,12 +45,14 @@ int main(int, char *[])
     test_constexpr_ctor<long>();
     test_constexpr_ctor<int*>();
 
+#if !defined(BOOST_ATOMIC_NO_FLOATING_POINT)
     test_floating_point_api<float>();
     test_floating_point_api<double>();
     test_floating_point_api<long double>();
-#if defined(BOOST_HAS_FLOAT128)
+#if (defined(BOOST_HAS_INT128) || !defined(BOOST_NO_ALIGNMENT)) && defined(BOOST_HAS_FLOAT128)
     test_floating_point_api<boost::float128_type>();
 #endif
+#endif
 
     test_pointer_api<int>();