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

20 lines
323 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 16:06:02 +00:00
static int square (int x)
{
return x*x; /* out-of-func */
}
1999-06-28 16:06:02 +00:00
int main ()
{
int i = 99;
i++;
i = square (i); /* bp-on-call */
i--; /* bp-on-non-call */
1999-06-28 16:06:02 +00:00
return 0;
}