capacity.cc: Only explicitly instantiate on platforms with no weak support.
authorPhil Edwards <pme@gcc.gnu.org>
Mon, 11 Mar 2002 21:08:06 +0000 (21:08 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Mon, 11 Mar 2002 21:08:06 +0000 (21:08 +0000)
2002-03-11  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/21_strings/capacity.cc:  Only explicitly instantiate on
platforms with no weak support.
* testsuite/27_io/ios_init.cc:  Likewise.

From-SVN: r50597

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/capacity.cc
libstdc++-v3/testsuite/27_io/ios_init.cc

index 7cdebce569f3a8cab5307e69a760f9c888bf1e47..a2eaf0f8f1683c0f81f305421318a53d1c690d37 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-11  Phil Edwards  <pme@gcc.gnu.org>
+
+       * testsuite/21_strings/capacity.cc:  Only explicitly instantiate on
+       platforms with no weak support.
+       * testsuite/27_io/ios_init.cc:  Likewise.
+
 2002-03-10  Paolo Carlini  <pcarlini@unitus.it>
 
        * include/bits/locale_facets.tcc (time_put::do_put):
index c8f78890f9bcf91bfcec26baa74177f56d87c465..3bfb051e0a2d88c34c6e94129b40d43d1da8c4ab 100644 (file)
@@ -188,6 +188,7 @@ bool test02()
   return test;
 }
 
+#if !__GXX_WEAK__
 // Explicitly instantiate for systems with no COMDAT or weak support.
 template 
   std::basic_string< A<B> >::size_type 
@@ -196,6 +197,7 @@ template
 template 
   A<B>
   std::basic_string< A<B> >::_Rep::_S_terminal;
+#endif
 
 int main()
 {
index 7cef9cce68340f0891a7572726ba31771a553d9c..38d2e522822caefcde58a34f4991827549c3c580 100644 (file)
@@ -132,6 +132,7 @@ void test02()
   VERIFY( test );
 }
 
+#if !__GXX_WEAK__
 // Explicitly instantiate for systems with no COMDAT or weak support.
 template 
   std::basic_string<unsigned short>::size_type 
@@ -140,6 +141,7 @@ template
 template 
   unsigned short
   std::basic_string<unsigned short>::_Rep::_S_terminal;
+#endif
 
 int main()
 {