#include static void __attribute__ ((constructor)) constructor(); static void constructor(){ printf("oi\n"); } static void __attribute__ ((destructor)) destructor(); static void destructor(){ printf("tchau\n"); }