From e7f4a4c03365c19b7ba9a189a86df2de5cce3585 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 2 Sep 2021 18:34:38 +0100 Subject: [PATCH] Add missing files. --- test/bernoulli_no_atomic_d.cpp | 14 ++++++++++++++ test/bernoulli_no_atomic_fail.cpp | 15 +++++++++++++++ test/bernoulli_no_atomic_mp.cpp | 16 ++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 test/bernoulli_no_atomic_d.cpp create mode 100644 test/bernoulli_no_atomic_fail.cpp create mode 100644 test/bernoulli_no_atomic_mp.cpp 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)); +}