]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/so-indr-cl.c
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / so-indr-cl.c
1 /* This program is linked against SOM shared libraries, which the loader
2 automatically loads along with the program itself).
3 */
4
5 #include <stdio.h>
6
7 extern int solib_main (int);
8
9 static int
10 solib_wrapper (function)
11 int (*function)(int);
12 {
13 return (*function)(100);
14 }
15
16
17 main ()
18 {
19 int result;
20
21 /* This is an indirect call to solib_main. */
22 result = solib_wrapper (solib_main);
23 }