gdb: add back declarations for _initialize functions
[deliverable/binutils-gdb.git] / gdb / unittests / optional-selftests.c
index 76343c65427e2d1e571380c8ca82840972a9e903..c1b9e53ac4104dbbec5e90e0df511cd086e0900d 100644 (file)
@@ -1,6 +1,6 @@
 /* Self tests for optional for GDB, the GNU debugger.
 
-   Copyright (C) 2017 Free Software Foundation, Inc.
+   Copyright (C) 2017-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -18,8 +18,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-#include "selftest.h"
-#include "common/gdb_optional.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/gdb_optional.h"
 
 /* Used by the included .cc files below.  Included here because the
    included test files are wrapped in a namespace.  */
@@ -87,8 +87,9 @@ run_tests ()
 } /* namespace optional */
 } /* namespace selftests */
 
+void _initialize_optional_selftests ();
 void
 _initialize_optional_selftests ()
 {
-  register_self_test (selftests::optional::run_tests);
+  selftests::register_test ("optional", selftests::optional::run_tests);
 }
This page took 0.04227 seconds and 4 git commands to generate.