diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/unittests/packed-selftests.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/unittests/packed-selftests.c')
-rw-r--r-- | gdb/unittests/packed-selftests.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/unittests/packed-selftests.c b/gdb/unittests/packed-selftests.c index c5dd843..470d465 100644 --- a/gdb/unittests/packed-selftests.c +++ b/gdb/unittests/packed-selftests.c @@ -21,8 +21,10 @@ #include "gdbsupport/selftest.h" #include "gdbsupport/packed.h" -namespace selftests { -namespace packed_tests { +namespace selftests +{ +namespace packed_tests +{ enum test_enum { @@ -43,7 +45,7 @@ gdb_static_assert (alignof (packed<test_enum, 3>) == 1); gdb_static_assert (alignof (packed<test_enum, 4>) == 1); /* Triviality checks. */ -#define CHECK_TRAIT(TRAIT) \ +#define CHECK_TRAIT(TRAIT) \ static_assert (std::TRAIT<packed<test_enum, 1>>::value, "") #if HAVE_IS_TRIVIALLY_COPYABLE @@ -125,6 +127,7 @@ run_tests () } /* namespace selftests */ void _initialize_packed_selftests (); + void _initialize_packed_selftests () { |