mirror of
https://github.com/boostorg/typeof.git
synced 2025-11-18 08:29:55 +01:00
added more tests
[SVN r30908]
This commit is contained in:
12
test/modifiers.cpp
Executable file
12
test/modifiers.cpp
Executable 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);
|
||||
Reference in New Issue
Block a user