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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.base/] [so-impl-ld.c] - Blame information for rev 24

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

Line No. Rev Author Line
1 24 jeremybenn
/* This program is linked against SOM shared libraries, which the loader
2
   automatically loads along with the program itself).
3
   */
4
 
5
#include <stdio.h>
6
 
7
#if defined(__cplusplus) || defined(__STDCPP__)
8
extern "C" int  solib_main (int  arg);
9
#else
10
int  solib_main (int  arg);
11
#endif
12
 
13
int main ()
14
{
15
  int  result;
16
 
17
  /* Call a shlib function. */
18
  result = solib_main (100);
19
 
20
  /* Call it again. */
21
  result = solib_main (result);
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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