/* 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.
{
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)
} /* namespace vector_utils_tests */
} /* amespace selftests */
+void _initialize_vec_utils_selftests ();
void
_initialize_vec_utils_selftests ()
{