old-cross-binutils/gdb/testsuite/gdb.base/so-impl-ld.c

24 lines
444 B
C
Raw Normal View History

/* This program is linked against SOM shared libraries, which the loader
automatically loads along with the program itself).
*/
#include <stdio.h>
1999-06-28 16:06:02 +00:00
#if defined(__cplusplus) || defined(__STDCPP__)
extern "C" int solib_main (int arg);
#else
int solib_main (int arg);
#endif
1999-06-28 16:06:02 +00:00
int main ()
{
int result;
/* Call a shlib function. */
result = solib_main (100);
/* Call it again. */
result = solib_main (result);
1999-06-28 16:06:02 +00:00
return 0;
}