summaryrefslogtreecommitdiffstats
path: root/gdb/testsuite/gdb.base/so-impl-ld.c
blob: a8fa18949b2a447e0e05d8fcd218a6f08c6a3446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* This program is linked against SOM shared libraries, which the loader
   automatically loads along with the program itself).
   */

#include <stdio.h>

extern int solib_main (int);

main ()
{
  int  result;

  /* Call a shlib function. */
  result = solib_main (100);

  /* Call it again. */
  result = solib_main (result);
}
OpenPOWER on IntegriCloud