aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr108819.c
blob: 28fa558b26024c3107d7f0b3ea4bd100c7114d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/108819 */
/* { dg-do compile } */
/* { dg-options "-O1 -fno-tree-ccp -fno-tree-forwprop" } */

int a, b;

int
main ()
{
  int d = 1;
  for (; b; b++)
    if (a < 1)
      while (d <= a && a <= 0UL)
	{
	  int *e = &d;
	  *e = 0;
	}
  return 0;
}