C++ catch test