]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/vector/invalidation/3.cc
1.cc: Provide explicit instantiations for non-weak systems.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / vector / invalidation / 3.cc
index b34af6448ff401dfb027d35ffac6c8abee9946fc..5447cf8ac43f575ea982c52be1d3b62db88cbdee 100644 (file)
@@ -83,6 +83,11 @@ void test03()
   VERIFY(before._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>;
+#endif
+
 int main()
 {
   test03();