Weak memory test.

This commit is contained in:
2013-03-29 16:22:15 +04:00
parent 34081b078b
commit 2903f5d6c6
2 changed files with 83 additions and 0 deletions

24
_.cpp Normal file
View File

@@ -0,0 +1,24 @@
#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;
}}