ebf6f434 A |
1 | #include <stdio.h> |
2 | |
3 | char *myweakfunc(void) __attribute__((weak)) ; |
4 | |
5 | int main(int argc, char **argv) |
6 | { |
7 | if (myweakfunc) |
8 | printf ("found myweakfunc %s\n", myweakfunc()); |
9 | else |
10 | printf("Weak func not found\n"); |
11 | return 0; |
12 | } |
13 | |