check_allocate_max_size.cpp: Add explicit instantiations for systems without weak...
authorMark Mitchell <mark@codesourcery.com>
Thu, 21 Apr 2005 04:21:51 +0000 (04:21 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 21 Apr 2005 04:21:51 +0000 (04:21 +0000)
* testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add
explicit instantiations for systems without weak symbols.
* testsuite/ext/bitmap_allocator/check_deallocate_null.cc:
Likewise.

From-SVN: r98486

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc
libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc

index 9bd78ced94f7c1811578aaa5514d0e2443dfda9b..0853f4941826a98bfd410a9ba8e17f2220d3f59b 100644 (file)
@@ -1,3 +1,10 @@
+2005-04-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add
+       explicit instantiations for systems without weak symbols.
+       * testsuite/ext/bitmap_allocator/check_deallocate_null.cc:
+       Likewise. 
+
 2005-04-18  Jonathan Wakely  <redi@gcc.gnu.org>
 
        * include/bits/stl_algo.h (rotate_copy): Add missing std qualification.
index 442b91db2094c00a84a7a9ef1b7a70231f91d8b5..37843756bc1d5dd2306dbf6b210beb4fdb3da98d 100644 (file)
 #include <ext/bitmap_allocator.h>
 #include <testsuite_allocator.h>
 
+typedef int value_type;
+
 int main()
 { 
-  typedef int value_type;
   typedef __gnu_cxx::bitmap_allocator<value_type> allocator_type;
   __gnu_test::check_allocate_max_size<allocator_type>();
   return 0;
 }
+
+#if !__GXX_WEAK
+// Explicitly instantiatiate for systems without weak symbols.
+template class __gnu_cxx::bitmap_allocator<value_type>;
+#endif
index ebe8114793b41bd5e7345d3f547f9589d81bd74f..9d7ae98dce08db4b103a453ae0bc700563b8884a 100644 (file)
 #include <ext/bitmap_allocator.h>
 #include <testsuite_allocator.h>
 
+typedef int value_type;
+
 int main()
 { 
-  typedef int value_type;
   typedef __gnu_cxx::bitmap_allocator<value_type> allocator_type;
   __gnu_test::check_deallocate_null<allocator_type>(); 
   return 0;
 }
+
+#if !__GXX_WEAK
+// Explicitly instantiatiate for systems without weak symbols.
+template class __gnu_cxx::bitmap_allocator<value_type>;
+#endif
+
+