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