aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/until.c
blob: 83beea08f41203696f7b9ccd00fb252d8c137a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
void
foo (void)
{
 int i, x, y, z;

 x = 0;
 y = 1;
 i = 0;

 while (i < 2)
   i++;				/* in-loop */

 x = i;				/* after-loop */
 y = 2 * x;
 z = x + y;
 y = x + z;			/* until-here */
 x = 9;
 y = 10;			/* until-there */
}

int
main ()
{
  int a = 1;
  foo ();
  a += 2;
  return 0;			/* at-return */
}