mirror of git://gcc.gnu.org/git/gcc.git
Fix std::wstring capacity test for short wchar_t
* testsuite/21_strings/basic_string/capacity/char/18654.cc: Use real minimum capacity. * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Likewise. From-SVN: r230378
This commit is contained in:
parent
bfc6afd929
commit
230b4edeee
|
|
@ -1,3 +1,10 @@
|
||||||
|
2015-11-14 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
|
||||||
|
real minimum capacity.
|
||||||
|
* testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
|
||||||
|
Likewise.
|
||||||
|
|
||||||
2015-11-13 David Edelsohn <dje.gcc@gmail.com>
|
2015-11-13 David Edelsohn <dje.gcc@gmail.com>
|
||||||
|
|
||||||
* testsuite/experimental/random/randint.cc: Add dg-add-options tls.
|
* testsuite/experimental/random/randint.cc: Add dg-add-options tls.
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ void test01()
|
||||||
|
|
||||||
#if _GLIBCXX_USE_CXX11_ABI
|
#if _GLIBCXX_USE_CXX11_ABI
|
||||||
// Can't shrink below small string size.
|
// Can't shrink below small string size.
|
||||||
const size_type minsize = 2 << 3;
|
const size_type minsize = string().capacity() + 1;
|
||||||
#else
|
#else
|
||||||
// Exact shrink-to-size and shrink-to-fit
|
// Exact shrink-to-size and shrink-to-fit
|
||||||
const size_type minsize = 2 << 0;
|
const size_type minsize = 2 << 0;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ void test01()
|
||||||
|
|
||||||
#if _GLIBCXX_USE_CXX11_ABI
|
#if _GLIBCXX_USE_CXX11_ABI
|
||||||
// Can't shrink below small string size.
|
// Can't shrink below small string size.
|
||||||
const size_type minsize = 2 << 1;
|
const size_type minsize = wstring().capacity() + 1;
|
||||||
#else
|
#else
|
||||||
// Exact shrink-to-size and shrink-to-fit
|
// Exact shrink-to-size and shrink-to-fit
|
||||||
const size_type minsize = 2 << 0;
|
const size_type minsize = 2 << 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue