Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.base / so-indr-cl.c
blobf31800d04bf5b637540432635a809561ac9c4f11
1 /* This program is linked against SOM shared libraries, which the loader
2 automatically loads along with the program itself).
3 */
5 #include <stdio.h>
6 #ifdef PROTOTYPES
7 extern "C" int solib_main (int);
9 static int
10 solib_wrapper (int (*function)(int))
11 #else
12 extern int solib_main (int);
14 static int
15 solib_wrapper (function)
16 int (*function)(int);
17 #endif
19 return (*function)(100);
23 int main ()
25 int result;
27 /* This is an indirect call to solib_main. */
28 result = solib_wrapper (solib_main);
29 return 0;