1 #include <stdlib.h>
2
3 extern int counter;
4
5 void
6 foo (void)
7 {
8 counter++;
9 }
10
11 __attribute__((weak))
12 void
13 bar (void)
14 {
15 abort ();
16 }