diff --git a/tests/test_class.cpp b/tests/test_class.cpp index bd545e8c682..6718d69f4fc 100644 --- a/tests/test_class.cpp +++ b/tests/test_class.cpp @@ -421,6 +421,7 @@ TEST_SUBMODULE(class_, m) { // test_exception_rvalue_abort struct PyPrintDestructor { PyPrintDestructor() = default; + PyPrintDestructor(const PyPrintDestructor&) = default; ~PyPrintDestructor() { py::print("Print from destructor"); }