#include <iostream>
using namespace std;
class CTest{public: CTest(){cout << "CTest::CTest" << endl;} ~CTest(){cout << "CTest::~CTest" << endl;}};
int main(){ char* buf; CTest* p = new CTest(); buf = (char*)p; delete buf; return 0;}
输出结果:CTest::CTest