]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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.tt.org/LICENSE_1_0.txt) | |
6 | ||
7c673cae FG |
7 | #ifdef TEST_STD |
8 | # include <type_traits> | |
9 | #else | |
10 | # include <boost/type_traits/remove_bounds.hpp> | |
11 | #endif | |
11fdf7f2 TL |
12 | #include "test.hpp" |
13 | #include "check_type.hpp" | |
7c673cae FG |
14 | |
15 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_1, ::tt::remove_bounds, const, const) | |
16 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_2, ::tt::remove_bounds, volatile, volatile) | |
17 | BOOST_DECL_TRANSFORM_TEST3(remove_bounds_test_3, ::tt::remove_bounds, [2]) | |
18 | BOOST_DECL_TRANSFORM_TEST0(remove_bounds_test_4, ::tt::remove_bounds) | |
19 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_5, ::tt::remove_bounds, const &, const&) | |
20 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_6, ::tt::remove_bounds, *, *) | |
21 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_7, ::tt::remove_bounds, *volatile, *volatile) | |
22 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_8, ::tt::remove_bounds, const [2], const) | |
23 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_9, ::tt::remove_bounds, const &, const&) | |
24 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_10, ::tt::remove_bounds, const*, const*) | |
25 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_11, ::tt::remove_bounds, volatile*, volatile*) | |
26 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_12, ::tt::remove_bounds, const[2][3], const[3]) | |
27 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_13, ::tt::remove_bounds, (&)[2], (&)[2]) | |
28 | BOOST_DECL_TRANSFORM_TEST3(remove_bounds_test_14, ::tt::remove_bounds, []) | |
29 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_15, ::tt::remove_bounds, const [], const) | |
30 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_16, ::tt::remove_bounds, const[][3], const[3]) | |
31 | #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES | |
32 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_5a, ::tt::remove_bounds, const &&, const&&) | |
33 | BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_13a, ::tt::remove_bounds, (&&)[2], (&&)[2]) | |
34 | #endif | |
35 | ||
36 | TT_TEST_BEGIN(remove_bounds) | |
37 | ||
38 | remove_bounds_test_1(); | |
39 | remove_bounds_test_2(); | |
40 | remove_bounds_test_3(); | |
41 | remove_bounds_test_4(); | |
42 | remove_bounds_test_5(); | |
43 | remove_bounds_test_6(); | |
44 | remove_bounds_test_7(); | |
45 | remove_bounds_test_8(); | |
46 | remove_bounds_test_9(); | |
47 | remove_bounds_test_10(); | |
48 | remove_bounds_test_11(); | |
49 | remove_bounds_test_12(); | |
50 | remove_bounds_test_13(); | |
51 | remove_bounds_test_14(); | |
52 | remove_bounds_test_15(); | |
53 | remove_bounds_test_16(); | |
54 | #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES | |
55 | remove_bounds_test_5a(); | |
56 | remove_bounds_test_13a(); | |
57 | #endif | |
58 | ||
59 | TT_TEST_END | |
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 |