Commit dac2c906 by Peter Schmid Committed by Benjamin Kosnik

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
parent 956d9305
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> 2002-09-25 Mark Mitchell <mark@codesourcery.com>
* include/std/std_limits.h (numeric_limits<unsigned char>::digits): * include/std/std_limits.h (numeric_limits<unsigned char>::digits):
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <limits> #include <limits>
#include <limits.h> #include <limits.h>
#include <float.h> #include <float.h>
#include <cwchar>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
template<typename T> template<typename T>
...@@ -48,6 +49,10 @@ DEFINE_EXTREMA(unsigned, 0U, UINT_MAX); ...@@ -48,6 +49,10 @@ DEFINE_EXTREMA(unsigned, 0U, UINT_MAX);
DEFINE_EXTREMA(long, LONG_MIN, LONG_MAX); DEFINE_EXTREMA(long, LONG_MIN, LONG_MAX);
DEFINE_EXTREMA(unsigned long, 0UL, ULONG_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(float, FLT_MIN, FLT_MAX);
DEFINE_EXTREMA(double, DBL_MIN, DBL_MAX); DEFINE_EXTREMA(double, DBL_MIN, DBL_MAX);
DEFINE_EXTREMA(long double, LDBL_MIN, LDBL_MAX); DEFINE_EXTREMA(long double, LDBL_MIN, LDBL_MAX);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment