xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.mi/until.c (revision a5a4af3bd380a7b58b758d9b311cef9f7c34aeb4)
1 void
foo(void)2 foo (void)
3 {
4  int i, x, y, z;
5 
6  x = 0;
7  y = 1;
8  i = 0;
9 
10  while (i < 2)
11    i++;				/* in-loop */
12 
13  x = i;				/* after-loop */
14  y = 2 * x;
15  z = x + y;
16  y = x + z;			/* until-here */
17  x = 9;
18  y = 10;			/* until-there */
19 }
20 
21 int
main()22 main ()
23 {
24   int a = 1;
25   foo ();
26   a += 2;
27   return 0;			/* at-return */
28 }
29