]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/type_traits/test/negation_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / type_traits / test / negation_test.cpp
diff --git a/ceph/src/boost/libs/type_traits/test/negation_test.cpp b/ceph/src/boost/libs/type_traits/test/negation_test.cpp
new file mode 100644 (file)
index 0000000..604b7fe
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+Copyright 2020 Glen Joseph Fernandes
+(glenjofe@gmail.com)
+
+Distributed under 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)
+*/
+#ifdef TEST_STD
+#include <type_traits>
+#else
+#include <boost/type_traits/negation.hpp>
+#endif
+#include "check_integral_constant.hpp"
+
+template<int V>
+struct Int {
+    static const int value = V;
+};
+
+TT_TEST_BEGIN(negation)
+
+BOOST_CHECK_INTEGRAL_CONSTANT(::tt::negation<Int<5> >::value, false);
+BOOST_CHECK_INTEGRAL_CONSTANT(::tt::negation<Int<0> >::value, true);
+
+TT_TEST_END