remove_bounds_test.cpp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // (C) Copyright John Maddock 2000.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.tt.org/LICENSE_1_0.txt)
  5. #ifdef TEST_STD
  6. # include <type_traits>
  7. #else
  8. # include <boost/type_traits/remove_bounds.hpp>
  9. #endif
  10. #include "test.hpp"
  11. #include "check_type.hpp"
  12. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_1, ::tt::remove_bounds, const, const)
  13. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_2, ::tt::remove_bounds, volatile, volatile)
  14. BOOST_DECL_TRANSFORM_TEST3(remove_bounds_test_3, ::tt::remove_bounds, [2])
  15. BOOST_DECL_TRANSFORM_TEST0(remove_bounds_test_4, ::tt::remove_bounds)
  16. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_5, ::tt::remove_bounds, const &, const&)
  17. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_6, ::tt::remove_bounds, *, *)
  18. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_7, ::tt::remove_bounds, *volatile, *volatile)
  19. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_8, ::tt::remove_bounds, const [2], const)
  20. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_9, ::tt::remove_bounds, const &, const&)
  21. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_10, ::tt::remove_bounds, const*, const*)
  22. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_11, ::tt::remove_bounds, volatile*, volatile*)
  23. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_12, ::tt::remove_bounds, const[2][3], const[3])
  24. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_13, ::tt::remove_bounds, (&)[2], (&)[2])
  25. BOOST_DECL_TRANSFORM_TEST3(remove_bounds_test_14, ::tt::remove_bounds, [])
  26. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_15, ::tt::remove_bounds, const [], const)
  27. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_16, ::tt::remove_bounds, const[][3], const[3])
  28. #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
  29. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_5a, ::tt::remove_bounds, const &&, const&&)
  30. BOOST_DECL_TRANSFORM_TEST(remove_bounds_test_13a, ::tt::remove_bounds, (&&)[2], (&&)[2])
  31. #endif
  32. TT_TEST_BEGIN(remove_bounds)
  33. remove_bounds_test_1();
  34. remove_bounds_test_2();
  35. remove_bounds_test_3();
  36. remove_bounds_test_4();
  37. remove_bounds_test_5();
  38. remove_bounds_test_6();
  39. remove_bounds_test_7();
  40. remove_bounds_test_8();
  41. remove_bounds_test_9();
  42. remove_bounds_test_10();
  43. remove_bounds_test_11();
  44. remove_bounds_test_12();
  45. remove_bounds_test_13();
  46. remove_bounds_test_14();
  47. remove_bounds_test_15();
  48. remove_bounds_test_16();
  49. #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
  50. remove_bounds_test_5a();
  51. remove_bounds_test_13a();
  52. #endif
  53. TT_TEST_END