added more tests

[SVN r30908]
This commit is contained in:
Arkadiy Vertleyb
2005-09-11 14:59:52 +00:00
parent 2bc33ea912
commit 9bb8a83f24
9 changed files with 91 additions and 5 deletions

12
test/modifiers.cpp Executable file
View File

@@ -0,0 +1,12 @@
#include "test.hpp"
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
struct x;
BOOST_TYPEOF_REGISTER_TYPE(x)
BOOST_STATIC_ASSERT(boost::type_of::test<x*>::value);
BOOST_STATIC_ASSERT(boost::type_of::test<x&>::value);
BOOST_STATIC_ASSERT(boost::type_of::test<x[20]>::value);
BOOST_STATIC_ASSERT(boost::type_of::test<const x>::value);
BOOST_STATIC_ASSERT(boost::type_of::test<volatile x>::value);
BOOST_STATIC_ASSERT(boost::type_of::test<volatile const x>::value);