summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr49518.c
blob: 84a10fbbeebebc295d7307624069bedae3656a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */

int a, b;
struct S { unsigned int s, t, u; } c, d = { 0, 1, 0 };

void
test (unsigned char z)
{
  char e[] = {0, 0, 0, 0, 1};
  for (c.s = 1; c.s; c.s++)
    {
      b = e[c.s];
      if (a)
	break;
      b = z >= c.u;
      if (d.t)
	break;
    }
}