1 2 3 4 5 6 7 8
extern int foo; static void __attribute__ ((unused, constructor)) set_foo (void) { foo = 30; }