From ec67a7720a236918188b384c95631c4a5f1abb3c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 14 Jul 2024 13:03:39 +0200 Subject: w --- test/bptr.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/bptr.cpp b/test/bptr.cpp index ee254b68..3a62de53 100644 --- a/test/bptr.cpp +++ b/test/bptr.cpp @@ -15,10 +15,6 @@ struct Baz : bptr_base {}; // NOLINTBEGIN(*-use-anonymous-namespace) -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; @@ -333,6 +329,13 @@ void test9() fm_assert(A_total == 1 && A_alive == 0); }; +void test10() +{ + fm_assert(bptr{} == bptr{}); + fm_assert(bptr{} == bptr{}); + fm_assert(bptr{} == bptr{}); +} + } // namespace void Test::test_bptr() @@ -346,6 +349,7 @@ void Test::test_bptr() test7(); test8(); test9(); + test10(); } } // namespace floormat -- cgit v1.2.3