Files
test/_.cpp
2013-03-29 16:22:15 +04:00

25 lines
315 B
C++

#include <iostream>
#include <exception>
int main ( void )
{try{
return 0;
}
catch ( const std::exception& e )
{
std::cerr << std::endl
<< "std::exception(\"" << e.what() << "\")." << std::endl;
return 2;
}
catch ( ... )
{
std::cerr << std::endl
<< "unknown exception." << std::endl;
return 1;
}}