gdb: add back declarations for _initialize functions
[deliverable/binutils-gdb.git] / gdb / unittests / vec-utils-selftests.c
index 823bbb61c25f7a3124150f4a5565ac5dca3fa657..38e817ae76537fd18c07a7b818b16050d87f0f29 100644 (file)
@@ -1,6 +1,6 @@
 /* Self tests for vector utility routines for GDB, the GNU debugger.
 
-   Copyright (C) 2019 Free Software Foundation, Inc.
+   Copyright (C) 2019-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -38,6 +38,15 @@ unordered_remove_tests ()
   {
     std::vector<void *> var;
 
+    obj() = default;
+
+    /* gcc complains if we provide an assignment operator but no copy
+       constructor, so provide one even if don't really care for this test.  */
+    obj(const obj &other)
+    {
+      this->var = other.var;
+    }
+
     obj &operator= (const obj &other)
     {
       if (this == &other)
@@ -57,6 +66,7 @@ unordered_remove_tests ()
 } /* namespace vector_utils_tests */
 } /* amespace selftests */
 
+void _initialize_vec_utils_selftests ();
 void
 _initialize_vec_utils_selftests ()
 {
This page took 0.025254 seconds and 4 git commands to generate.