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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.base/] [jump.c] - Rev 231

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

/* This program is used to test the "jump" command.  There's nothing
   particularly deep about the functionality nor names in here.
   */
 
#ifdef PROTOTYPES
static int square (int x)
#else
static int square (x)
  int  x;
#endif
{
  return x*x;
}
 
 
int main ()
{
  int i = 99;
 
  i++;
  i = square (i);
  i--;
  return 0;
}
 

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.