MCPcopy Create free account
hub / github.com/apple/coremltools / PyPrintDestructor

Method PyPrintDestructor

deps/pybind11/tests/test_class.cpp:500–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498 // test_exception_rvalue_abort
499 struct PyPrintDestructor {
500 PyPrintDestructor() = default;
501 ~PyPrintDestructor() { py::print("Print from destructor"); }
502 void throw_something() { throw std::runtime_error("error"); }
503 };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected