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/] [langs0.c] - Rev 321

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

/* This file is actually in C, it is not supposed to simulate something
   translated from another language or anything like that.  */
#ifdef PROTOTYPES
extern  int fsub_();
 
int csub (int x)
#else
int
csub (x)
     int x;
#endif
{
  return x + 1;
}
 
int
langs0__2do ()
{
  return fsub_ () + 2;
}
 
int
main ()
{
#ifdef usestubs
  set_debug_traps();
  breakpoint();
#endif
  if (langs0__2do () == 5003)
    /* Success.  */
    return 0;
  else
    return 1;
}
 

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

powered by: WebSVN 2.1.0

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