]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/list/cons/7.cc
1.cc: Provide explicit instantiations for non-weak systems.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / list / cons / 7.cc
index 650c82b133fdbde0a4770836ab0d6cd8ca0c6922..16a8f90261195edb505f1e2e906963bcc047014e 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -63,9 +63,14 @@ test06()
   VERIFY(list0601.size() == SMALL_LIST_SIZE);
 }
 
+#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()
 {
   test06();
   return 0;
 }
-// vi:set sw=2 ts=2:
+