]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/test/copy_reference_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / type_traits / test / copy_reference_test.cpp
CommitLineData
92f5a8d4
TL
1/*
2Copyright 2019 Glen Joseph Fernandes
3(glenjofe@gmail.com)
4
5Distributed under the Boost Software License,
6Version 1.0. (See accompanying file LICENSE_1_0.txt
7or copy at http://www.boost.org/LICENSE_1_0.txt)
8*/
9
10#ifdef TEST_STD
11#include <type_traits>
12#else
13#include <boost/type_traits/copy_reference.hpp>
14#endif
15#include "test.hpp"
16#include "check_type.hpp"
17
18TT_TEST_BEGIN(copy_reference)
19
20BOOST_CHECK_TYPE3(::tt::copy_reference<int, char>::type, int);
21BOOST_CHECK_TYPE3(::tt::copy_reference<int, char&>::type, int&);
22BOOST_CHECK_TYPE3(::tt::copy_reference<int&, char>::type, int&);
23BOOST_CHECK_TYPE3(::tt::copy_reference<int&, char&>::type, int&);
24
25#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
26BOOST_CHECK_TYPE3(::tt::copy_reference<int, char&&>::type, int&&);
27BOOST_CHECK_TYPE3(::tt::copy_reference<int&, char&&>::type, int&);
28BOOST_CHECK_TYPE3(::tt::copy_reference<int&&, char>::type, int&&);
29BOOST_CHECK_TYPE3(::tt::copy_reference<int&&, char&>::type, int&);
30BOOST_CHECK_TYPE3(::tt::copy_reference<int&&, char&&>::type, int&&);
31#endif
32
33TT_TEST_END