]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/test_standalone_asserts.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / test_standalone_asserts.cpp
diff --git a/ceph/src/boost/libs/math/test/test_standalone_asserts.cpp b/ceph/src/boost/libs/math/test/test_standalone_asserts.cpp
new file mode 100644 (file)
index 0000000..25b875b
--- /dev/null
@@ -0,0 +1,21 @@
+//  (C) Copyright Matt Borland 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)
+
+#ifndef BOOST_MATH_STANDALONE
+#define BOOST_MATH_STANDALONE
+#endif
+
+#include <boost/math/tools/assert.hpp>
+
+int main(void)
+{
+    constexpr unsigned two = 2;
+    
+    BOOST_MATH_ASSERT(two == 2);
+    BOOST_MATH_ASSERT_MSG(two == 2, "Fails");
+
+    BOOST_MATH_STATIC_ASSERT(two == 2);
+    BOOST_MATH_STATIC_ASSERT_MSG(two == 2, "Fails");
+}