ubsan: m10300: shift exponent -4
[deliverable/binutils-gdb.git] / gdb / unittests / vec-utils-selftests.c
index 823bbb61c25f7a3124150f4a5565ac5dca3fa657..027c1216180e8e801b9e4f25ffc727711aa92ea3 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)
This page took 0.025801 seconds and 4 git commands to generate.