Move `compute_probe_arg' and `compile_probe_arg' to probe.c
[deliverable/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 extern "C" int solib_main (int);
7
8 static int
9 solib_wrapper (int (*function)(int))
10 {
11 return (*function)(100);
12 }
13
14
15 int main ()
16 {
17 int result;
18
19 /* This is an indirect call to solib_main. */
20 result = solib_wrapper (solib_main);
21 return 0;
22 }
This page took 0.030228 seconds and 4 git commands to generate.