Commit 4f70f9d2 by Paolo Carlini Committed by Paolo Carlini

18654.cc: Use better names.

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
parent 22bbc492
2004-11-29 Paolo Carlini <pcarlini@suse.de> 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 PR libstdc++/18654
* include/bits/basic_string.tcc (_Rep::_S_create): When shrinking, * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
do not round to pagesize. do not round to pagesize.
......
...@@ -34,9 +34,9 @@ void test01() ...@@ -34,9 +34,9 @@ void test01()
// Our current implementation provides exact shrink-to-size // Our current implementation provides exact shrink-to-size
// and shrink-to-fit (in the future, maybe this will change // and shrink-to-fit (in the future, maybe this will change
// for short strings). // for short strings).
size_type min = 2 << 0; const size_type minsize = 2 << 0;
size_type max = 2 << 20; const size_type maxsize = 2 << 20;
for (size_type i = min; i <= max; i *= 2) for (size_type i = minsize; i <= maxsize; i *= 2)
{ {
string str(i, 'x'); string str(i, 'x');
str.reserve(3 * i); str.reserve(3 * i);
......
...@@ -34,9 +34,9 @@ void test01() ...@@ -34,9 +34,9 @@ void test01()
// Our current implementation provides exact shrink-to-size // Our current implementation provides exact shrink-to-size
// and shrink-to-fit (in the future, maybe this will change // and shrink-to-fit (in the future, maybe this will change
// for short strings). // for short strings).
size_type min = 2 << 0; const size_type minsize = 2 << 0;
size_type max = 2 << 20; const size_type maxsize = 2 << 20;
for (size_type i = min; i <= max; i *= 2) for (size_type i = minsize; i <= maxsize; i *= 2)
{ {
wstring str(i, L'x'); wstring str(i, L'x');
str.reserve(3 * i); str.reserve(3 * i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment