mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
956d93056d
commit
dac2c906db
|
|
@ -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>
|
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 @@
|
||||||
#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);
|
||||||
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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue