From 5c54707ed13c2996f36b99dddb76f017765cec72 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 4 May 2024 20:13:15 +0200 Subject: a w --- test/bptr.cpp | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/bptr.cpp b/test/bptr.cpp index b8e4bef1..99d6cd2c 100644 --- a/test/bptr.cpp +++ b/test/bptr.cpp @@ -4,10 +4,38 @@ namespace floormat { -namespace { struct Foo {}; struct Bar : Foo {}; struct Baz {}; } +namespace { +struct Foo {}; +struct Bar : Foo {}; +struct Baz {}; +} // 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; + template class bptr; +template class bptr; +template class bptr; + +template bptr static_pointer_cast(const bptr&) noexcept; +template bptr static_pointer_cast(const bptr&) noexcept; +template bptr static_pointer_cast(const bptr&) noexcept; + template bptr static_pointer_cast(const bptr&) noexcept; +template bptr static_pointer_cast(const bptr&) noexcept; + +//template bptr static_pointer_cast(const bptr&) noexcept; // must fail +//template bptr static_pointer_cast(const bptr&) noexcept; // must fail +//template bptr static_pointer_cast(const bptr&) noexcept; // must fail + +// NOLINTEND(*-use-anonymous-namespace) namespace { @@ -22,5 +50,4 @@ void test_app::test_bptr() test1(); } - } // namespace floormat -- cgit v1.2.3