import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / so-impl-ld.c
CommitLineData
c906108c
SS
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
085dd6e6
JM
7#if defined(__cplusplus) || defined(__STDCPP__)
8extern "C" int solib_main (int arg);
9#else
10int solib_main (int arg);
11#endif
c906108c 12
085dd6e6 13int main ()
c906108c
SS
14{
15 int result;
16
17 /* Call a shlib function. */
18 result = solib_main (100);
19
20 /* Call it again. */
21 result = solib_main (result);
085dd6e6 22 return 0;
c906108c 23}
This page took 0.029278 seconds and 4 git commands to generate.