OSDN Git Service

2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 23_containers / deque / invalidation / 3.cc
index 60103c1..fe37498 100644 (file)
@@ -1,6 +1,6 @@
 // Deque iterator invalidation tests
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -42,6 +42,7 @@ void test03()
   // Insert multiple copies
   before = v.begin() + 6;
   at = before + 1;
+
   v.insert(at, 3, 42);
   VERIFY(before._M_singular());
   VERIFY(at._M_singular());
@@ -55,8 +56,14 @@ void test03()
   VERIFY(at._M_singular());
 }
 
+#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()
 {
   test03();
-  return !test;
+  return 0;
 }