diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2002-06-04 15:38:07 +0200 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2002-06-04 13:38:07 +0000 |
commit | 23992195af630fc28be52a3ecfd12cfb913ba040 (patch) | |
tree | fd9436e5805f0f227f1552a3b0ebb5487bfe4ae9 | |
parent | 82eda77ed5c4548bd5cbb3f5bbe6f3453a3d1eea (diff) | |
download | gcc-23992195af630fc28be52a3ecfd12cfb913ba040.zip gcc-23992195af630fc28be52a3ecfd12cfb913ba040.tar.gz gcc-23992195af630fc28be52a3ecfd12cfb913ba040.tar.bz2 |
2002-06-04 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/money_get_members_char.cc
(test02): Add decimal point to long double constants.
* testsuite/22_locale/money_get_members_wchar_t.cc
(test02): Likewise.
* testsuite/22_locale/money_put_members_char.cc
(test02, test03, test06): Likewise.
* testsuite/22_locale/money_put_members_wchar_t.cc:
(test02, test03, test06): Likewise.
* testsuite/22_locale/num_get_members_char.cc:
(test02, test01): Likewise; suffix long long constants with LL.
* testsuite/22_locale/num_get_members_wchar_t.cc:
(test02, test01): Likewise.
* testsuite/22_locale/num_put_members_char.cc:
(test02, test01): Likewise.
* testsuite/22_locale/num_put_members_wchar_t.cc:
(test02, test01): Likewise.
From-SVN: r54243
9 files changed, 47 insertions, 28 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3255503..d6987c4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,22 @@ +2002-06-04 Paolo Carlini <pcarlini@unitus.it> + + * testsuite/22_locale/money_get_members_char.cc + (test02): Add decimal point to long double constants. + * testsuite/22_locale/money_get_members_wchar_t.cc + (test02): Likewise. + * testsuite/22_locale/money_put_members_char.cc + (test02, test03, test06): Likewise. + * testsuite/22_locale/money_put_members_wchar_t.cc: + (test02, test03, test06): Likewise. + * testsuite/22_locale/num_get_members_char.cc: + (test02, test01): Likewise; suffix long long constants with LL. + * testsuite/22_locale/num_get_members_wchar_t.cc: + (test02, test01): Likewise. + * testsuite/22_locale/num_put_members_char.cc: + (test02, test01): Likewise. + * testsuite/22_locale/num_put_members_wchar_t.cc: + (test02, test01): Likewise. + 2002-06-03 Marc Espie <espie@openbsd.org> * config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline diff --git a/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc b/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc index 1d80e75..9807a39 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc @@ -236,13 +236,13 @@ void test02() const string empty; // total EPA budget FY 2002 - const long double digits1 = 720000000000; + const long double digits1 = 720000000000.0; // est. cost, national missile "defense", expressed as a loss in USD 2001 - const long double digits2 = -10000000000000; + const long double digits2 = -10000000000000.0; // input less than frac_digits - const long double digits4 = -1; + const long double digits4 = -1.0; iterator_type end; istringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc index 3d95d26..90a32cd 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc @@ -238,13 +238,13 @@ void test02() const wstring empty; // total EPA budget FY 2002 - const long double digits1 = 720000000000; + const long double digits1 = 720000000000.0; // est. cost, national missile "defense", expressed as a loss in USD 2001 - const long double digits2 = -10000000000000; + const long double digits2 = -10000000000000.0; // input less than frac_digits - const long double digits4 = -1; + const long double digits4 = -1.0; iterator_type end; wistringstream iss; diff --git a/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc b/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc index 6cae3d7..f1b2e5e 100644 --- a/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc @@ -195,13 +195,13 @@ void test02() const string empty; // total EPA budget FY 2002 - const long double digits1 = 720000000000; + const long double digits1 = 720000000000.0; // est. cost, national missile "defense", expressed as a loss in USD 2001 - const long double digits2 = -10000000000000; + const long double digits2 = -10000000000000.0; // input less than frac_digits - const long double digits4 = -1; + const long double digits4 = -1.0; ostringstream oss; @@ -256,7 +256,7 @@ void test03() const locale loc_c = locale::classic(); // woman, art, thief (stole the blues) const string str("1943 Janis Joplin"); - const long double ld = 1943; + const long double ld = 1943.0; const string x(str.size(), 'x'); // have to have allocated string! string res; @@ -357,7 +357,7 @@ void test06() bool intl = false; - long double val = 1e50L; + long double val = 1.0e50L; const money_put<char,OutIt>& mp = use_facet<money_put<char, OutIt> >(loc); diff --git a/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc index c913251..034ae56 100644 --- a/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc @@ -195,13 +195,13 @@ void test02() const wstring empty; // total EPA budget FY 2002 - const long double digits1 = 720000000000; + const long double digits1 = 720000000000.0; // est. cost, national missile "defense", expressed as a loss in USD 2001 - const long double digits2 = -10000000000000; + const long double digits2 = -10000000000000.0; // input less than frac_digits - const long double digits4 = -1; + const long double digits4 = -1.0; wostringstream oss; @@ -256,7 +256,7 @@ void test03() const locale loc_c = locale::classic(); // woman, art, thief (stole the blues) const wstring str(L"1943 Janis Joplin"); - const long double ld = 1943; + const long double ld = 1943.0; const wstring x(str.size(), 'x'); // have to have allocated string! wstring res; @@ -357,7 +357,7 @@ void test06() bool intl = false; - long double val = 1e50L; + long double val = 1.0e50L; const money_put<wchar_t,OutIt>& mp = use_facet<money_put<wchar_t, OutIt> >(loc); diff --git a/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc b/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc index b65e101..8786a2c 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc @@ -222,8 +222,8 @@ void test01() #ifdef _GLIBCPP_USE_LONG_LONG - long long ll1 = 9223372036854775807; - long long ll2 = -9223372036854775807; + long long ll1 = 9223372036854775807LL; + long long ll2 = -9223372036854775807LL; long long ll; iss.str("9.223.372.036.854.775.807"); @@ -274,7 +274,7 @@ void test02() VERIFY( rem1 == " Elizabeth Durack" ); // 02 get(long double) - long double ld = 0; + long double ld = 0.0; err = goodbit; iter_type end2 = ng.get(str.begin(), str.end(), iss, err, ld); string rem2(end2, str.end()); diff --git a/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc index 5585c43..6b7d147 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc @@ -223,8 +223,8 @@ void test01() #ifdef _GLIBCPP_USE_LONG_LONG - long long ll1 = 9223372036854775807; - long long ll2 = -9223372036854775807; + long long ll1 = 9223372036854775807LL; + long long ll2 = -9223372036854775807LL; long long ll; iss.str(L"9.223.372.036.854.775.807"); @@ -275,7 +275,7 @@ void test02() VERIFY( rem1 == L" Elizabeth Durack" ); // 02 get(long double) - long double ld = 0; + long double ld = 0.0; err = goodbit; iter_type end2 = ng.get(str.begin(), str.end(), iss, err, ld); wstring rem2(end2, str.end()); diff --git a/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc b/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc index 7966fb5..bd116e6 100644 --- a/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc @@ -208,8 +208,8 @@ void test01() VERIFY( result1.find('x') == 1 ); #ifdef _GLIBCPP_USE_LONG_LONG - long long ll1 = 9223372036854775807; - long long ll2 = -9223372036854775807; + long long ll1 = 9223372036854775807LL; + long long ll2 = -9223372036854775807LL; oss.str(empty); oss.clear(); @@ -257,7 +257,7 @@ void test02() VERIFY( sanity1 == "1798" ); // 02 put(long double) - const long double ld = 1798; + const long double ld = 1798.0; res = x; iter_type ret2 = tp.put(res.begin(), oss, ' ', ld); string sanity2(res.begin(), ret2); diff --git a/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc index 86a7b25..65bb70e 100644 --- a/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc @@ -209,8 +209,8 @@ void test01() VERIFY( result1.find(L'x') == 1 ); #ifdef _GLIBCPP_USE_LONG_LONG - long long ll1 = 9223372036854775807; - long long ll2 = -9223372036854775807; + long long ll1 = 9223372036854775807LL; + long long ll2 = -9223372036854775807LL; oss.str(empty); oss.clear(); @@ -257,7 +257,7 @@ void test02() VERIFY( sanity1 == L"1798" ); // 02 put(long double) - const long double ld = 1798; + const long double ld = 1798.0; res = x; iter_type ret2 = tp.put(res.begin(), oss, L' ', ld); wstring sanity2(res.begin(), ret2); |