aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/jump.c
blob: aae94f7e85a89b72af12a7761d29b174d981a006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* 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;
}