aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr61518.c
blob: 98429b09a93d85dcbda41909f2226d706f46c60b (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
28
29
/* { dg-do run } */

int a, b, c[1], d, e, f;

void
fn1 ()
{
  for (; d < 1; d++)
    {
      if (b)
	{
	  a = e++ && f;
	  b = f;
	}
      c[b] = 0;
    }
}

int
main ()
{
  fn1 ();

  if (e != 0)
    __builtin_abort ();

  return 0;
}