#include <iostream> #include <list> class destructor_test{ public: ~destructor_test(){ std::cout << "~destructor_test" << std::endl; } }; class test{ private: destructor_test destructor_test_instance; }; int main () { test * test_instance = new test(); delete test_instance; return 0; }