summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-14 10:48:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-14 13:04:43 +0200
commit5fe8eec392fa0568a03ad566a5b41c3b1df7a465 (patch)
tree828560d738492fbf7c58b9758e0858d54964c5c6 /test
parentb1143255469c992a6d8475a070af951b7d09c51d (diff)
w
Diffstat (limited to 'test')
-rw-r--r--test/app.cpp1
-rw-r--r--test/app.hpp1
-rw-r--r--test/bptr.cpp10
3 files changed, 3 insertions, 9 deletions
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<Foo>;
-template struct detail_borrowed_ptr::control_block_impl<Bar>;
-template struct detail_borrowed_ptr::control_block_impl<Baz>;
-
template bool operator==(const bptr<Foo>&, const bptr<Foo>&) noexcept;
template bool operator==(const bptr<Bar>&, const bptr<Bar>&) noexcept;
template bool operator==(const bptr<Baz>&, const bptr<Baz>&) 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; }