summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr83512.c
blob: d86e57befc7e9a4ac39b664ec8e5c2a7f676c243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR rtl-optimization/83512 */
/* { dg-do compile } */
/* { dg-options "-O2 -freorder-blocks-algorithm=simple" } */

int a;

void
foo (int *x)
{
  for (;;)
    {
      for (*x = 0; *x < 1; *x++)
	;
      ++a;
    }
}