xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/jump.c (revision a5a4af3bd380a7b58b758d9b311cef9f7c34aeb4)
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 
square(int x)5 static int square (int x)
6 {
7   return x*x;			/* out-of-func */
8 }
9 
10 
main()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 }
20