1 extern int __attribute__ ((weak)) fun (void);
2 int
foo(void)3 foo (void)
4 {
5   if (&fun != 0)
6     return fun ();
7   return 0;
8 }
9