numeric_limits.cc: Check the maximum and minimum values of the wchar_t type.

2002-09-25  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

	* testsuite/18_support/numeric_limits.cc: Check the maximum and
	minimum values of the wchar_t type.

From-SVN: r57512
This commit is contained in:
Peter Schmid 2002-09-25 19:37:04 +00:00 committed by Benjamin Kosnik
parent 956d93056d
commit dac2c906db
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-09-25 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/18_support/numeric_limits.cc: Check the maximum and
minimum values of the wchar_t type.
2002-09-25 Mark Mitchell <mark@codesourcery.com>
* include/std/std_limits.h (numeric_limits<unsigned char>::digits):

View File

@ -25,6 +25,7 @@
#include <limits>
#include <limits.h>
#include <float.h>
#include <cwchar>
#include <testsuite_hooks.h>
template<typename T>
@ -48,6 +49,10 @@ DEFINE_EXTREMA(unsigned, 0U, UINT_MAX);
DEFINE_EXTREMA(long, LONG_MIN, LONG_MAX);
DEFINE_EXTREMA(unsigned long, 0UL, ULONG_MAX);
#if _GLIBCPP_USE_WCHAR_T
DEFINE_EXTREMA(wchar_t, WCHAR_MIN, WCHAR_MAX);
#endif //_GLIBCPP_USE_WCHAR_T
DEFINE_EXTREMA(float, FLT_MIN, FLT_MAX);
DEFINE_EXTREMA(double, DBL_MIN, DBL_MAX);
DEFINE_EXTREMA(long double, LDBL_MIN, LDBL_MAX);