aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/solib1.c
blob: c7d17f49f413034799a1f2466132ca14db081741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* This program is intended to be built as an HP-UX SOM shared
   library, for use by the solib.exp testcase.  It simply returns
   the square of its integer argument.
   */
#if defined(__cplusplus) || defined(__STDCPP__)
extern "C"
#endif
int
solib_main (int arg)
{
  return arg*arg;		/* HERE */
}				/* STEP */