// File: bad6.cpp // // Testing where the destructor gets called. // Some things you are not supposed to do. #include #include "dmc.h" using namespace std ; int main() { DMC X ; cout << "Calling the destructor!\n" ; X.~DMC() ; // BAD! cout << "done!\n" ; }