summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr61529.c
blob: 392239e7158964c12a2d056573d56a228cf74ac0 (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
/* PR middle-end/61529 */
/* { dg-do compile } */
/* { dg-options "-O3" } */

unsigned int a = 0, b = 0;
unsigned int c;

int
main ()
{
  unsigned int d = 0;
  int e[5];

  for (; b < 1; b++)
    d = 0;
  for (; d < 1; d++)
    a = 0;
  for (; a < 1; a++)
    ;

  for (c = 0; c < 5; c++)
    e[c] = 1;
  if (e[0])
    c = 0;

  return 0;
}