]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/vector/element_access/1.cc
1.cc: Provide explicit instantiations for non-weak systems.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / vector / element_access / 1.cc
index 89026225f9ab3160ead7265df77dba1e15d782ba..fce524d9c475b95a2f8981f36ad6fd635409fee4 100644 (file)
@@ -1,7 +1,7 @@
 // 2000-09-06
 // bkoz 
 
-// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2000, 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
@@ -55,9 +55,13 @@ bool test01()
   return test;
 }
 
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<A<B> >;
+#endif
+
 int main()
 {
   test01();
-
   return 0;
 }