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 7cdebce..a2eaf0f 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 c8f7889..3bfb051 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 7cef9cc..38d2e52 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()
 {