OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [gdb/] [testsuite/] [gdb.base/] [solib1.c] - Diff between revs 24 and 33

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 24 Rev 33
/* This program is intended to be built as an HP-UX SOM shared
/* This program is intended to be built as an HP-UX SOM shared
   library, for use by the solib.exp testcase.  It simply returns
   library, for use by the solib.exp testcase.  It simply returns
   the square of its integer argument.
   the square of its integer argument.
   */
   */
#if defined(__cplusplus) || defined(__STDCPP__)
#if defined(__cplusplus) || defined(__STDCPP__)
extern "C" int
extern "C" int
solib_main (int arg)
solib_main (int arg)
#else
#else
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int  solib_main (int arg)
int  solib_main (int arg)
#else
#else
int  solib_main (arg)
int  solib_main (arg)
  int  arg;
  int  arg;
#endif
#endif
#endif
#endif
{
{
  return arg*arg;
  return arg*arg;
}
}
 
 

powered by: WebSVN 2.1.0

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