mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
e444df73e9
Clean up solib1.c by removing the #ifdef PROTOTYPES conditional. gdb/testsuite/ChangeLog: * gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped variant.
13 lines
313 B
C
13 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 */
|