summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71881.c
blob: b17db1b21c1cca9bba3b69d639d242709c9d3567 (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
/* { dg-do compile } */
/* { dg-additional-options "-g" } */

int a, b, c, d, *e, f, g;

int fn1 ()
{
  char h[2];
  int i = 0;
  for (; i < 2; i++)
    {
      if (c)
	for (*e = 0; *e;)
	  {
	    int j[f];
	    i = *e;
	  }
      h[i] = 0;
    }
  for (; a;)
    return h[0];
  for (b = 0; b;)
    i = g = (1 & i) < d;
  return 0;
}