Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/gdb/testsuite/gdb.base/jump.c
2023-03-06 14:48:14 +01:00

19 lines
323 B
C

/* This program is used to test the "jump" command. There's nothing
particularly deep about the functionality nor names in here.
*/
static int square (int x)
{
return x*x; /* out-of-func */
}
int main ()
{
int i = 99;
i++;
i = square (i); /* bp-on-call */
i--; /* bp-on-non-call */
return 0;
}