aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr64326.c
blob: ed6481048aa88f3d76d488248710c5813dfa121e (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 compile } */

int a, b, c, d, e, f[5][2];
char g;

int
fn1 ()
{
  return d && c ? 0 : 1;
}

int
fn2 ()
{
  int h;
  for (;;)
    for (; e;)
      {
	int i, j;
	h = a ? 1 : b;
	if (h || fn1 () ^ g - 682)
	  {
	    for (i = 0; i < 5; i++)
	      for (j = 0; j < 2; j++)
		f[i][j] = 0;
	    return 0;
	  }
      }
}