diff options
author | Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> | 2002-09-25 19:37:04 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2002-09-25 19:37:04 +0000 |
commit | dac2c906db41b589d9c9adda05cf4db40973b47f (patch) | |
tree | 99fd90d0b51e08c1e95c7b6384977796c5502a04 | |
parent | 956d93056d6c4a121da5e5caf5e15e8f619845f1 (diff) | |
download | gcc-dac2c906db41b589d9c9adda05cf4db40973b47f.zip gcc-dac2c906db41b589d9c9adda05cf4db40973b47f.tar.gz gcc-dac2c906db41b589d9c9adda05cf4db40973b47f.tar.bz2 |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/18_support/numeric_limits.cc | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 17a8c68..fd08840 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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): diff --git a/libstdc++-v3/testsuite/18_support/numeric_limits.cc b/libstdc++-v3/testsuite/18_support/numeric_limits.cc index 6eb0134..7dd5a6c 100644 --- a/libstdc++-v3/testsuite/18_support/numeric_limits.cc +++ b/libstdc++-v3/testsuite/18_support/numeric_limits.cc @@ -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); |