#include <iostream>
using namespace std;
class Debug
{
public:
Debug()
{
cout << "before main!" << endl;
}
};
Debug t;
int main()
{
cout << "main" << endl;
return 0;
}

// #include <iostream>
#include <stdio.h>
// using namespace std;
// class Debug
// {
// public:
// Debug()
// {
// cout << "before main!" << endl;
// }
// };
// Debug t;
__attribute((constructor)) void before_main()
{
printf("%s\n",__FUNCTION__);
}
__attribute((destructor)) void after_main()
{
printf("%s\n",__FUNCTION__);
}
int main(int argc, char ** argv)
{
printf("%s\n",__FUNCTION__);
// cout << "main" << endl;
return 0;
}
