]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc
New std::string implementation.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / capacity / wchar_t / 18654.cc
index e4cd85c953f1a6ac38c4b8acafd95b0e4e08bc7e..855578dc4af8516b620300d3a45aa2a203862504 100644 (file)
@@ -36,10 +36,13 @@ void test01()
 
   typedef wstring::size_type size_type;
 
-  // Our current implementation provides exact shrink-to-size
-  // and shrink-to-fit (in the future, maybe this will change
-  // for short strings).
+#if _GLIBCXX_USE_CXX11_ABI
+  // Can't shrink below small string size.
+  const size_type minsize = 2 << 1;
+#else
+  // Exact shrink-to-size and shrink-to-fit
   const size_type minsize = 2 << 0;
+#endif
   const size_type maxsize = 2 << MAX_SIZE;
   for (size_type i = minsize; i <= maxsize; i *= 2)
     {