]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/test/is_compound_test.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / type_traits / test / is_compound_test.cpp
1
2 // (C) Copyright John Maddock 2000.
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #ifdef TEST_STD
8 # include <type_traits>
9 #else
10 # include <boost/type_traits/is_compound.hpp>
11 #endif
12 #include "test.hpp"
13 #include "check_integral_constant.hpp"
14
15 TT_TEST_BEGIN(is_compound)
16
17 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound<UDT>::value, true);
18 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound<void*>::value, true);
19 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound<void>::value, false);
20 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound<int>::value, false);
21 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound<test_abc1>::value, true);
22
23 TT_TEST_END
24
25
26
27
28
29
30
31