#include <iostream>
using namespace std;

class MyClass{
	public:
	~MyClass() throw(int) { throw 0;}
};

int main() {
	try {
		 MyClass m;
		 throw 1;
	}
	catch(...)
	{
	    std::cout<<"Exception catched"<<endl;
	}
	return 0;
}