]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/24_iterators/insert_iterator.cc
1.cc: Provide explicit instantiations for non-weak systems.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 24_iterators / insert_iterator.cc
index 7fca06092d8acabed22ff5bc7ec9a6c24924a337..322bccf4ea3a816ec162eeb367381fccb4401314 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-06-21  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -70,6 +70,11 @@ public:
   test_dm(): std::insert_iterator<std::list<int> >(l, i), p(container) { }
 };
 
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<std::_List_node<int> >;
+#endif
+
 int main() 
 { 
   test01();