diff --git a/test/bernoulli_no_atomic_d.cpp b/test/bernoulli_no_atomic_d.cpp new file mode 100644 index 000000000..61926f7e1 --- /dev/null +++ b/test/bernoulli_no_atomic_d.cpp @@ -0,0 +1,14 @@ +// (C) Copyright John Maddock 2021. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#define BOOST_MATH_NO_ATOMIC_INT + +#include +#include "test_compile_result.hpp" + +void compile_and_link_test() +{ + check_result(boost::math::bernoulli_b2n(4)); +} diff --git a/test/bernoulli_no_atomic_fail.cpp b/test/bernoulli_no_atomic_fail.cpp new file mode 100644 index 000000000..bbd715241 --- /dev/null +++ b/test/bernoulli_no_atomic_fail.cpp @@ -0,0 +1,15 @@ +// (C) Copyright John Maddock 2021. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#define BOOST_MATH_NO_ATOMIC_INT + +#include +#include +#include "test_compile_result.hpp" + +void compile_and_link_test() +{ + check_result(boost::math::bernoulli_b2n(4)); +} diff --git a/test/bernoulli_no_atomic_mp.cpp b/test/bernoulli_no_atomic_mp.cpp new file mode 100644 index 000000000..8d5a6e78e --- /dev/null +++ b/test/bernoulli_no_atomic_mp.cpp @@ -0,0 +1,16 @@ +// (C) Copyright John Maddock 2021. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#define BOOST_MATH_NO_ATOMIC_INT +#define BOOST_MATH_BERNOULLI_UNTHREADED + +#include +#include +#include "test_compile_result.hpp" + +void compile_and_link_test() +{ + check_result(boost::math::bernoulli_b2n(4)); +}