Skip to content

Commit 2c1e34e

Browse files
committed
test: fix warning in test
1 parent f7eefae commit 2c1e34e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/t-ref_ptr-11.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ TEST_CASE("ref_ptr") {
7272

7373
struct animal {
7474
animal(std::string n) : name(std::move(n)) {}
75+
virtual ~animal() = default;
7576
std::string name;
7677
virtual std::string speak() const = 0;
7778
};
@@ -105,4 +106,4 @@ TEST_CASE("unsafe") {
105106
auto sp2 = rp._as_shared_ptr_unsafe();
106107
CHECK(sp == sp2);
107108
CHECK(rp.use_count() == 3);
108-
}
109+
}

0 commit comments

Comments
 (0)