From: Paolo Carlini Date: Wed, 5 Jun 2002 12:08:45 +0000 (+0200) Subject: 2002-06-05 Paolo Carlini X-Git-Tag: releases/gcc-3.1.1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be17bfdb74b309866bff3810d3ce0aa62caf4e49;p=thirdparty%2Fgcc.git 2002-06-05 Paolo Carlini * 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: r54281 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 323e77deb31b..0353cacc6146 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,22 @@ +2002-06-05 Paolo Carlini + + * 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-04 Paolo Carlini Gaby Dos Reis 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 1d80e7539f79..9807a39002ba 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 3d95d262c70c..90a32cd48543 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 6cae3d793514..f1b2e5e9d5a4 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& mp = use_facet >(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 c9132516b022..034ae564c7c4 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& mp = use_facet >(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 b65e1013fc4c..8786a2cb9b05 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 5585c4389ae8..6b7d14756663 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 7966fb51c11a..bd116e6c6292 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 86a7b25e0caf..65bb70ecfb5e 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);