mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 18:51:24 +08:00
stof.cc: Improve check on long double limits.
2008-07-03 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc: Improve check on long double limits. * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stof.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stod.cc: Likewise. From-SVN: r137428
This commit is contained in:
parent
dcde22ac51
commit
5d13614ab0
@ -1,3 +1,14 @@
|
||||
2008-07-03 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
|
||||
Improve check on long double limits.
|
||||
* testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
|
||||
Likewise.
|
||||
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
|
||||
stof.cc: Likewise.
|
||||
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
|
||||
stod.cc: Likewise.
|
||||
|
||||
2008-07-03 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* libsupc++/Makefile.am: Add initializer_list to the headers.
|
||||
|
@ -107,7 +107,8 @@ test01()
|
||||
}
|
||||
VERIFY( test );
|
||||
|
||||
if (sizeof(double) < sizeof(long double))
|
||||
if ((numeric_limits<long double>::max() / 10000.0L)
|
||||
> numeric_limits<double>::max())
|
||||
{
|
||||
test = false;
|
||||
d1 = -1.0;
|
||||
|
@ -107,7 +107,8 @@ test01()
|
||||
}
|
||||
VERIFY( test );
|
||||
|
||||
if (sizeof(float) < sizeof(long double))
|
||||
if ((numeric_limits<long double>::max() / 10000.0L)
|
||||
> numeric_limits<float>::max())
|
||||
{
|
||||
test = false;
|
||||
f1 = -1.0f;
|
||||
|
@ -107,7 +107,8 @@ test01()
|
||||
}
|
||||
VERIFY( test );
|
||||
|
||||
if (sizeof(double) < sizeof(long double))
|
||||
if ((numeric_limits<long double>::max() / 10000.0L)
|
||||
> numeric_limits<double>::max())
|
||||
{
|
||||
test = false;
|
||||
d1 = -1.0;
|
||||
|
@ -107,7 +107,8 @@ test01()
|
||||
}
|
||||
VERIFY( test );
|
||||
|
||||
if (sizeof(float) < sizeof(long double))
|
||||
if ((numeric_limits<long double>::max() / 10000.0L)
|
||||
> numeric_limits<float>::max())
|
||||
{
|
||||
test = false;
|
||||
f1 = -1.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user