]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/binders.cc
1.cc: Provide explicit instantiations for non-weak systems.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / binders.cc
index a12d3b68146327b13d3b4b8b8a635e6957ba82f5..28de474a41db5de0da83d74316647a89567179f3 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-06-11  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003, 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
@@ -43,6 +43,10 @@ void test01()
           std::bind2nd(std::mem_fun_ref(&Elem::modify), 42));
 }
 
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<Elem>;
+#endif
 
 int main()
 {