2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-25 18:52:17 +00:00
Files
tti/test/TestMFHasTypeCheckTypedef.cpp
Edward Diener ebc6524a56 New tests and support for gcc 4.3.0
[SVN r67412]
2010-12-22 17:26:52 +00:00

99 lines
2.8 KiB
C++

#include "TestMFHasTypeCheckTypedef.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::has_type_check_typedef_AnIntType,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::NameStruct,
boost::mpl::identity<AType>,
tti::member_type_AStructType<AType>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::has_type_check_typedef_AnIntTypeReference,
boost::mpl::identity<AType>,
boost::mpl::identity<int &>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::has_type_check_typedef_BType,
boost::mpl::identity<AType>,
tti::member_type_BType<AType>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::TheInteger,
tti::member_type_BType<AType>,
boost::mpl::identity<int>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::has_type_check_typedef_CType,
tti::member_type_BType<AType>,
tti::mf_member_type
<
tti::member_type_CType,
tti::member_type_BType<AType>
>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::has_type_check_typedef_AnotherIntegerType,
tti::mf_member_type
<
tti::member_type_CType,
tti::member_type_BType<AType>
>,
boost::mpl::identity<int>
>
::value
));
BOOST_TEST((tti::mf_has_type_check_typedef
<
tti::SomethingElse,
boost::mpl::identity<AnotherType>,
tti::member_type_AnIntType<AType>
>
::value
));
BOOST_TEST((!tti::mf_has_type_check_typedef
<
tti::has_type_check_typedef_NoOtherType,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
>
::value
));
return boost::report_errors();
}