diff --git a/test/Jamfile b/test/Jamfile deleted file mode 100755 index f119c29..0000000 --- a/test/Jamfile +++ /dev/null @@ -1,42 +0,0 @@ -# Boost Typeof Library test Jamfile - -subproject libs/typeof/test ; - -# bring in rules for testing -import testing ; - -test-suite "typeof" - : - [ compile type.cpp : BOOST_TYPEOF_NATIVE : type_native ] - [ compile type.cpp : BOOST_TYPEOF_COMPLIANT : type_emulation ] - - [ compile template_type.cpp : BOOST_TYPEOF_NATIVE : template_type_native ] - [ compile template_type.cpp : BOOST_TYPEOF_COMPLIANT : template_type_emulation ] - - [ compile template_int.cpp : BOOST_TYPEOF_NATIVE : template_int_native ] - [ compile template_int.cpp : BOOST_TYPEOF_COMPLIANT : template_int_emulation ] - - [ compile template_tpl.cpp : BOOST_TYPEOF_NATIVE : template_tpl_native ] - [ compile template_tpl.cpp : BOOST_TYPEOF_COMPLIANT : template_tpl_emulation ] - - [ compile modifiers.cpp : BOOST_TYPEOF_NATIVE : modifiers_native ] - [ compile modifiers.cpp : BOOST_TYPEOF_COMPLIANT : modifiers_emulation ] - - [ compile function.cpp : BOOST_TYPEOF_NATIVE : function_native ] - [ compile function.cpp : BOOST_TYPEOF_COMPLIANT : function_emulation ] - - [ compile function_ptr.cpp : BOOST_TYPEOF_NATIVE : function_ptr_native ] - [ compile function_ptr.cpp : BOOST_TYPEOF_COMPLIANT : function_ptr_emulation ] - - [ compile function_ref.cpp : BOOST_TYPEOF_NATIVE : function_ref_native ] - [ compile function_ref.cpp : BOOST_TYPEOF_COMPLIANT : function_ref_emulation ] - - [ compile member_function.cpp : BOOST_TYPEOF_NATIVE : member_function_native ] - [ compile member_function.cpp : BOOST_TYPEOF_COMPLIANT : member_function_emulation ] - - [ compile data_member.cpp : BOOST_TYPEOF_NATIVE : data_member_native ] - [ compile data_member.cpp : BOOST_TYPEOF_COMPLIANT : data_member_emulation ] - - [ compile lvalue.cpp : BOOST_TYPEOF_NATIVE : lvalue_native ] - [ compile lvalue.cpp : BOOST_TYPEOF_COMPLIANT : lvalue_emulation ] - ; diff --git a/test/data_member.cpp b/test/data_member.cpp deleted file mode 100755 index 4fd7ab4..0000000 --- a/test/data_member.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "test.hpp" -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -struct x; -BOOST_TYPEOF_REGISTER_TYPE(x) - -BOOST_STATIC_ASSERT(boost::type_of::test::value); diff --git a/test/function.cpp b/test/function.cpp deleted file mode 100755 index 7ccda62..0000000 --- a/test/function.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#include "test.hpp" - -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); diff --git a/test/function_ptr.cpp b/test/function_ptr.cpp deleted file mode 100755 index 2e08a15..0000000 --- a/test/function_ptr.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include "test.hpp" - -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); diff --git a/test/function_ref.cpp b/test/function_ref.cpp deleted file mode 100755 index bc9f6ec..0000000 --- a/test/function_ref.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#include "test.hpp" - -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); diff --git a/test/lvalue.cpp b/test/lvalue.cpp deleted file mode 100755 index eed202a..0000000 --- a/test/lvalue.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include -#include -#include - -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -struct x{}; -BOOST_TYPEOF_REGISTER_TYPE(x) - -x n; -const x cn = n; -x& rn = n; -const x& rcn = cn; -x f(); -const x cf(); -x& rf(); -const x& rcf(); - -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); -BOOST_STATIC_ASSERT((boost::is_same::value)); diff --git a/test/member_function.cpp b/test/member_function.cpp deleted file mode 100755 index 2e08a15..0000000 --- a/test/member_function.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include "test.hpp" - -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); diff --git a/test/modifiers.cpp b/test/modifiers.cpp deleted file mode 100755 index e14143c..0000000 --- a/test/modifiers.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include "test.hpp" -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -struct x; -BOOST_TYPEOF_REGISTER_TYPE(x) - -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); -BOOST_STATIC_ASSERT(boost::type_of::test::value); diff --git a/test/template_int.cpp b/test/template_int.cpp deleted file mode 100755 index b0c6189..0000000 --- a/test/template_int.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "test.hpp" -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -struct x; -BOOST_TYPEOF_REGISTER_TYPE(x) - -template< - class T, char c, unsigned short us, int i, unsigned long ul, - bool b1, bool b2, signed char sc, unsigned u> - struct Tpl -{}; - -BOOST_TYPEOF_REGISTER_TEMPLATE(Tpl, - (class) - (char) - (unsigned short) - (int) - (unsigned long) - (bool) - (bool) - (signed char) - (unsigned) - ) - -BOOST_STATIC_ASSERT((boost::type_of::test >::value)); -BOOST_STATIC_ASSERT((boost::type_of::test >::value)); diff --git a/test/template_tpl.cpp b/test/template_tpl.cpp deleted file mode 100755 index 84227cb..0000000 --- a/test/template_tpl.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "test.hpp" -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -template -struct t0; - -template -struct t1; - -template class T, template class U> -struct t2; - -BOOST_TYPEOF_REGISTER_TEMPLATE(t0, 2) - -BOOST_TYPEOF_REGISTER_TEMPLATE(t1, (class)(int)) - -BOOST_TYPEOF_REGISTER_TEMPLATE(t2, - (BOOST_TYPEOF_TEMPLATE(2)) - (BOOST_TYPEOF_TEMPLATE((class)(int))) - ) - -BOOST_STATIC_ASSERT((boost::type_of::test >::value)); diff --git a/test/template_type.cpp b/test/template_type.cpp deleted file mode 100755 index f7d0e96..0000000 --- a/test/template_type.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "test.hpp" -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -struct P1; -struct P2; - -template struct Tpl; - -BOOST_TYPEOF_REGISTER_TYPE(P1) -BOOST_TYPEOF_REGISTER_TYPE(P2) -BOOST_TYPEOF_REGISTER_TEMPLATE(Tpl, 2) - -BOOST_STATIC_ASSERT((boost::type_of::test >::value)); diff --git a/test/test.hpp b/test/test.hpp deleted file mode 100755 index b31ac38..0000000 --- a/test/test.hpp +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2005 Arkadiy Vertleyb -// Use, modification and distribution is subject to the Boost Software -// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) - -#ifndef BOOST_TYPEOF_TEST_HPP_INCLUDED -#define BOOST_TYPEOF_TEST_HPP_INCLUDED - -#include -#include -#include - -namespace boost { namespace type_of { - - template - struct test_wrapper{}; - - template - test_wrapper test_helper(test_wrapper*); - - template - struct test - { - enum {value = boost::is_same< - BOOST_TYPEOF_TPL(test_helper(reinterpret_cast*>(0))), - test_wrapper - >::value - }; - }; - -}} - -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() -BOOST_TYPEOF_REGISTER_TEMPLATE(boost::type_of::test_wrapper, 2) - -#endif//BOOST_TYPEOF_TEST_HPP_INCLUDED diff --git a/test/type.cpp b/test/type.cpp deleted file mode 100755 index 50fcdb2..0000000 --- a/test/type.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "test.hpp" -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - -struct A; -BOOST_TYPEOF_REGISTER_TYPE(A) - -BOOST_STATIC_ASSERT(boost::type_of::test::value);