This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Add missing instantiations to some testcases


Hi,

obvious, committed to mainline.

///////////////
2004-07-04  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/25_algorithms/copy/1.cc: Add instantiations for
	systems with no COMDAT or weak support.
	* testsuite/25_algorithms/copy/2.cc: Likewise.
	* testsuite/25_algorithms/copy/3.cc: Likewise.
	* testsuite/25_algorithms/copy/4.cc: Likewise.
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/1.cc libstdc++-v3/testsuite/25_algorithms/copy/1.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/1.cc	2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/1.cc	2004-07-04 12:29:40.000000000 +0200
@@ -56,6 +56,11 @@
   VERIFY( equal(s2, s2 + N, A) );
 }
 
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
 int
 main()
 {
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/2.cc libstdc++-v3/testsuite/25_algorithms/copy/2.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/2.cc	2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/2.cc	2004-07-04 12:30:11.000000000 +0200
@@ -57,6 +57,11 @@
   VERIFY( equal(s2, s2 + N, a.begin()) );
 }
 
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
 int
 main()
 {
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/3.cc libstdc++-v3/testsuite/25_algorithms/copy/3.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/3.cc	2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/3.cc	2004-07-04 12:30:58.000000000 +0200
@@ -58,6 +58,12 @@
   VERIFY( equal(s2, s2 + N, a.begin()) );
 }
 
+#if !__GXX_WEAK__ && _MT_ALLOCATOR_H
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template class __gnu_cxx::__mt_alloc<int*>;
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
 int
 main()
 {
diff -urN libstdc++-v3-orig/testsuite/25_algorithms/copy/4.cc libstdc++-v3/testsuite/25_algorithms/copy/4.cc
--- libstdc++-v3-orig/testsuite/25_algorithms/copy/4.cc	2004-07-01 19:53:21.000000000 +0200
+++ libstdc++-v3/testsuite/25_algorithms/copy/4.cc	2004-07-04 12:32:07.000000000 +0200
@@ -58,6 +58,12 @@
   VERIFY( equal(s2, s2 + N, a.begin()) );
 }
 
+#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> >;
+template class __gnu_cxx::__mt_alloc<int>;
+#endif
+
 int
 main()
 {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]