[gdb/testsuite] Factor out lib/valgrind.exp
[external/binutils.git] / gdb / testsuite / gdb.base / jump.c
1 /* 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 static int square (int x)
6 {
7   return x*x;                   /* out-of-func */
8 }
9
10
11 int main ()
12 {
13   int i = 99;
14
15   i++;
16   i = square (i);               /* bp-on-call */
17   i--;                          /* bp-on-non-call */
18   return 0;
19 }