binutils-gdb/gdb/testsuite/gdb.base/jump.c

25 lines
324 B
C
Raw Normal View History

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