OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [testsuite/] [gdb.base/] [solib2.c] - Blame information for rev 106

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* This program is intended to be built as an HP-UX SOM shared
2
   library, for use by the solib.exp testcase.  It simply returns
3
   the cube of its integer argument.
4
   */
5
#ifdef __cplusplus
6
extern "C" {
7
#endif
8
#ifdef PROTOTYPES
9
int  solib_main (int  arg)
10
#else
11
int  solib_main (arg)
12
  int  arg;
13
#endif
14
{
15
  return arg*arg*arg;
16
}
17
#ifdef __cplusplus
18
}
19
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.