aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr97135.c
blob: 223f4d05b85750a6cf4af0ef08fad0851f8f50c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run } */

long long e, *d = &e;
int a, b, c;

int
main ()
{
  for (; c <= 5; c++)
    for (b = 0; b <= 5; b++)
      {
	for (a = 1; a <= 5; a++)
	  ;
	*d = 0;
	if (c)
	  break;
      }
  if (a != 6)
    __builtin_abort ();
  return 0;
}