34#ifndef _RWSTD_NO_EXT_CXX_0X
40template <
class T,
class U>
64template <
class T,
class U>
82template <
typename Type, Type Value>
85 typedef std::integral_constant<Type, Value>
86 integral_constant_type;
92 "integral_constant<%s, %s>::value is%{?}n't%{;} "
97 integral_constant_type::value ==
Value;
99 "integral_constant<%s, %s>::value is%{?}n't%{;} "
106 "integral_constant<%s, %s>::value is%{?}n't%{;} "
112 integral_constant_type>
::value;
114 "integral_constant<%s, %s>::type is%{?}n't%{;} "
115 "same as integral_constant<%s, %s>",
122template <
typename Type,
bool Value>
125 typedef Type integral_constant_type;
131 "%s::value_type is%{?}n't%{;} same as bool",
136 integral_constant_type::value ==
Value;
138 "%s::value is%{?}n't%{;} equal to %s",
145 "%s is%{?}n't%{;} of type integral_constant<bool, %s>",
156#define TEST_INTEGRAL_CONSTANT(Type,Value) \
157 test_integral_constant<Type, Value>(#Type,#Value)
166#ifndef _RWSTD_NO_WCHAR_T
188#ifndef _RWSTD_NO_LONG_LONG
210#ifndef _RWSTD_NO_LONG_LONG
224#define TEST_REQUIRED_TYPE(Type,Value) \
225 test_required_type<Type, Value>(#Type, #Value);
242 "test disabled because _RWSTD_NO_EXT_CXX_0X is defined");
250int main (
int argc,
char *argv[])
252 return rw_test (argc, argv, __FILE__,
void run_test(const ForwardIterator &dummy, T *, Predicate *pred)
_TEST_EXPORT int rw_test(int argc, char *argv[], const char *filename, const char *clause, const char *comment, int(*testfun)(int, char **), const char *optspec,...)
_TEST_EXPORT int rw_assert(int, const char *, int, const char *,...)
_TEST_EXPORT int rw_warn(int, const char *, int, const char *,...)