old-cross-binutils/gdb/testsuite/gdb.base/solib1.c
Andreas Arnez e444df73e9 Drop non-prototype C function header variants: solib1.c
Clean up solib1.c by removing the #ifdef PROTOTYPES conditional.

gdb/testsuite/ChangeLog:

	* gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
	variant.
2014-11-13 10:20:42 +01:00

12 lines
313 B
C

/* 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 */