1int foo = 0; 2extern int foo_alias __attribute__ ((weak, alias ("foo"))); 3 4void 5bar (void) 6{ 7 foo = -1; 8} 9 10