18654.cc: Use better names.
authorPaolo Carlini <pcarlini@suse.de>
Mon, 29 Nov 2004 13:29:54 +0000 (13:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 29 Nov 2004 13:29:54 +0000 (13:29 +0000)
2004-11-29  Paolo Carlini  <pcarlini@suse.de>

        * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
better names.
        * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.

From-SVN: r91469

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/capacity/char/18654.cc
libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc

index b0d82f84ab69141e375b54f873adc8a71ca77b16..95eae138627af40e781fd99d937eee7a5699482e 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-29  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
+        better names.
+       * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.
+
 2004-11-29  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/18654
index 16dd7ea9ebe03b3d6e0837fb33c7583a8f8d1628..5194d818be343ada0d2d86ef2b7e53abe7e98b1d 100644 (file)
@@ -34,9 +34,9 @@ void test01()
   // Our current implementation provides exact shrink-to-size
   // and shrink-to-fit (in the future, maybe this will change
   // for short strings).
-  size_type min = 2 << 0;
-  size_type max = 2 << 20;
-  for (size_type i = min; i <= max; i *= 2)
+  const size_type minsize = 2 << 0;
+  const size_type maxsize = 2 << 20;
+  for (size_type i = minsize; i <= maxsize; i *= 2)
     {
       string str(i, 'x');
       str.reserve(3 * i);
@@ -49,7 +49,7 @@ void test01()
     }
 }
 
-int main() 
+int main()
 {
   test01();
   return 0;
index 1b683bb4adad6e859175f7c72481b2b16aef2ea4..38623ebdebff6cc8c1e93d99e9b81acd91551e37 100644 (file)
@@ -34,9 +34,9 @@ void test01()
   // Our current implementation provides exact shrink-to-size
   // and shrink-to-fit (in the future, maybe this will change
   // for short strings).
-  size_type min = 2 << 0;
-  size_type max = 2 << 20;
-  for (size_type i = min; i <= max; i *= 2)
+  const size_type minsize = 2 << 0;
+  const size_type maxsize = 2 << 20;
+  for (size_type i = minsize; i <= maxsize; i *= 2)
     {
       wstring str(i, L'x');
       str.reserve(3 * i);