Files
test/shared_object_obfuscation/executable.cpp
2015-03-03 12:09:18 +04:00

36 lines
557 B
C++

/*
VIM: let g:lcppflags="-O2 -lshared_object -L."
VIM: let g:argv=""
*/
#include <iostream>
#include <exception>
#include "interface.h"
int main ( void )
{try{
MyVerySecretClass o;
o.secret_method1();
o.secret_method2();
o.secret_method1();
o.secret_method2();
o.secret_method1();
o.secret_method2();
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;
}}