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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.base/] [jump.c] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 jlechner
/* This program is used to test the "jump" command.  There's nothing
2
   particularly deep about the functionality nor names in here.
3
   */
4
 
5
#ifdef PROTOTYPES
6
static int square (int x)
7
#else
8
static int square (x)
9
  int  x;
10
#endif
11
{
12
  return x*x;
13
}
14
 
15
 
16
int main ()
17
{
18
  int i = 99;
19
 
20
  i++;
21
  i = square (i);
22
  i--;
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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