aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/scoped_restore-selftests.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/unittests/scoped_restore-selftests.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadgdb-users/simark/clang-format.zip
gdb-users/simark/clang-format.tar.gz
gdb-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/unittests/scoped_restore-selftests.c')
-rw-r--r--gdb/unittests/scoped_restore-selftests.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/unittests/scoped_restore-selftests.c b/gdb/unittests/scoped_restore-selftests.c
index a21fba5..0bfdca5 100644
--- a/gdb/unittests/scoped_restore-selftests.c
+++ b/gdb/unittests/scoped_restore-selftests.c
@@ -21,11 +21,18 @@
#include "gdbsupport/selftest.h"
#include "gdbsupport/scoped_restore.h"
-namespace selftests {
-namespace scoped_restore_tests {
+namespace selftests
+{
+namespace scoped_restore_tests
+{
+
+struct Base
+{
+};
-struct Base {};
-struct Derived : Base {};
+struct Derived : Base
+{
+};
static int global;
@@ -104,6 +111,7 @@ run_tests ()
} /* namespace selftests */
void _initialize_scoped_restore_selftests ();
+
void
_initialize_scoped_restore_selftests ()
{