]> gcc.gnu.org Git - gcc.git/commitdiff
2002-06-04 Paolo Carlini <pcarlini@unitus.it>
authorPaolo Carlini <pcarlini@unitus.it>
Tue, 4 Jun 2002 13:38:07 +0000 (15:38 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 4 Jun 2002 13:38:07 +0000 (13:38 +0000)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/money_get_members_char.cc
libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/money_put_members_char.cc
libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/num_get_members_char.cc
libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/num_put_members_char.cc
libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc

index 3255503643be65f0de29a7ce54470925c4424d9b..d6987c498f79a24f2890e5d886195db7601adcfe 100644 (file)
@@ -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
index 1d80e7539f799da2dc1a1ae1cafce6de61607c8f..9807a39002ba4b869b7b9af0a458e637fa715fcc 100644 (file)
@@ -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;
index 3d95d262c70cdbef965cad0a63bcad64dc8e6c35..90a32cd485433e794c9e2534e15d53109babdfd9 100644 (file)
@@ -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;
index 6cae3d79351421ed2b872497ac7d3047baa13046..f1b2e5e9d5a419a51a43146b7709aaf41b13bf5d 100644 (file)
@@ -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);
 
index c9132516b022fd47c206086782e71d0a3e9712d9..034ae564c7c469c3c7e4d3cba50bfc4444aacb7b 100644 (file)
@@ -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);
 
index b65e1013fc4ca1875c225c6a5e6d545790bd8f39..8786a2cb9b059efca4236defa8c86c132747eb63 100644 (file)
@@ -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());
index 5585c4389ae8e0d4a3df7f50aeaad64f275a2dab..6b7d1475666392f4ae23400c1b69086dd2b70ca5 100644 (file)
@@ -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());
index 7966fb51c11af10622a9171211307c3deb05958c..bd116e6c6292bf9f2b1c9ee9e735409e3884a1d0 100644 (file)
@@ -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);
index 86a7b25e0caf0f9acc466aedb1e174960ca7e2d4..65bb70ecfb5e7f7dc400627f6a66ced3e0906600 100644 (file)
@@ -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);
This page took 0.080279 seconds and 5 git commands to generate.