// File: bad4.cpp // // Testing where the destructor gets called. // Some things you are not supposed to do. #include #include "dmc.h" using namespace std ; void foo(DMC A) { cout << "Entering and exiting foo()\n" ; } int main() { cout << "\n\nEntering main()\n" ; DMC Y ; foo(Y) ; cout << "\n\nExiting main()\n" ; }