Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / type_traits / test / common_type_test.cpp
index bd1a54a..111cbb1 100644 (file)
@@ -87,13 +87,18 @@ TT_TEST_BEGIN(common_type)
 {
     assignation_2<C1C2, C1>();
     typedef tt::common_type<C1C2&, C1&>::type T1;
+       BOOST_CHECK_TYPE(T1, C1C2);
     typedef tt::common_type<C3*, C2*>::type T2;
+       BOOST_CHECK_TYPE(T2, C2*);
     typedef tt::common_type<int*, int const*>::type T3;
-#if defined(BOOST_NO_DECLTYPE) && !defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF)
+       BOOST_CHECK_TYPE(T3, int const*);
+#if defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF)
     // fails if BOOST_COMMON_TYPE_DONT_USE_TYPEOF:
     typedef tt::common_type<int volatile*, int const*>::type T4;
+       BOOST_CHECK_TYPE(T4, int const volatile*);
 #endif
     typedef tt::common_type<int*, int volatile*>::type T5;
+       BOOST_CHECK_TYPE(T5, int volatile*);
 
     assignation_2<C1, C1C2>();
     assignation_2<C1C2, C2>();