]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/test_standalone_asserts.cpp
25b875bdd07b6da06cfbcacef21bed8d7992afc0
[ceph.git] / ceph / src / boost / libs / math / test / test_standalone_asserts.cpp
1 // (C) Copyright Matt Borland 2021.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #ifndef BOOST_MATH_STANDALONE
7 #define BOOST_MATH_STANDALONE
8 #endif
9
10 #include <boost/math/tools/assert.hpp>
11
12 int main(void)
13 {
14 constexpr unsigned two = 2;
15
16 BOOST_MATH_ASSERT(two == 2);
17 BOOST_MATH_ASSERT_MSG(two == 2, "Fails");
18
19 BOOST_MATH_STATIC_ASSERT(two == 2);
20 BOOST_MATH_STATIC_ASSERT_MSG(two == 2, "Fails");
21 }