diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-14 13:03:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-14 13:04:43 +0200 |
commit | ec67a7720a236918188b384c95631c4a5f1abb3c (patch) | |
tree | fd124da2adff5c68c27ea473d51ddefd6e469634 /test/bptr.cpp | |
parent | 5fe8eec392fa0568a03ad566a5b41c3b1df7a465 (diff) |
w
Diffstat (limited to 'test/bptr.cpp')
-rw-r--r-- | test/bptr.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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<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; - template class bptr<Foo>; template class bptr<Bar>; template class bptr<Baz>; @@ -333,6 +329,13 @@ void test9() fm_assert(A_total == 1 && A_alive == 0); }; +void test10() +{ + fm_assert(bptr<Foo>{} == bptr<Foo>{}); + fm_assert(bptr<const Foo>{} == bptr<const Foo>{}); + fm_assert(bptr<Foo>{} == bptr<const Foo>{}); +} + } // namespace void Test::test_bptr() @@ -346,6 +349,7 @@ void Test::test_bptr() test7(); test8(); test9(); + test10(); } } // namespace floormat |