gdb: fix build error in unittests/vec-utils-selftests.c
[binutils-gdb.git] / gdb / unittests / vec-utils-selftests.c
index 823bbb61c25f7a3124150f4a5565ac5dca3fa657..51490916b085201abbe70714c5cb92405dff1137 100644 (file)
@@ -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)