OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [gdb/] [testsuite/] [gdb.base/] [jump.c] - Diff between revs 24 and 33

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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