From 5fe8eec392fa0568a03ad566a5b41c3b1df7a465 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 14 Jul 2024 10:48:42 +0200 Subject: w --- test/app.cpp | 1 - test/app.hpp | 1 - test/bptr.cpp | 10 +++------- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/app.cpp b/test/app.cpp index 47b019c7..6ace3ca5 100644 --- a/test/app.cpp +++ b/test/app.cpp @@ -62,7 +62,6 @@ int App::exec() FM_TEST(test_astar_pool), FM_TEST(test_coords), FM_TEST(test_hole), - FM_TEST(test_handle), FM_TEST(test_bptr), FM_TEST(test_iptr), FM_TEST(test_entity), diff --git a/test/app.hpp b/test/app.hpp index d32b9759..b1995e77 100644 --- a/test/app.hpp +++ b/test/app.hpp @@ -23,7 +23,6 @@ void test_coords(); void test_critter(); void test_dijkstra(); void test_entity(); -void test_handle(); void test_hash(); void test_hole(); void test_iptr(); diff --git a/test/bptr.cpp b/test/bptr.cpp index 303bf027..ee254b68 100644 --- a/test/bptr.cpp +++ b/test/bptr.cpp @@ -8,17 +8,13 @@ namespace floormat { namespace { -struct Foo {}; +struct Foo : bptr_base {}; struct Bar : Foo {}; -struct Baz {}; +struct Baz : bptr_base {}; } // namespace // NOLINTBEGIN(*-use-anonymous-namespace) -template struct detail_borrowed_ptr::control_block_impl; -template struct detail_borrowed_ptr::control_block_impl; -template struct detail_borrowed_ptr::control_block_impl; - template bool operator==(const bptr&, const bptr&) noexcept; template bool operator==(const bptr&, const bptr&) noexcept; template bool operator==(const bptr&, const bptr&) noexcept; @@ -44,7 +40,7 @@ namespace { int A_total = 0, A_alive = 0; // NOLINT -struct A +struct A : bptr_base { int val, serial; explicit A(int val) : val{val}, serial{++A_total} { ++A_alive; } -- cgit v1.2.3