aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr53168.c
blob: 0b9a8dce60937e328ae56a5678d91ab6768aa5fa (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
/* { dg-do compile } */

int a, b, c;
unsigned *d;
int e[1];
void fn1 ();
int fn2 ();
int
fn3 ()
{
  int *f = &a;
  if (fn2 ())
    {
      for (; c; c++)
	{
	  e[a] && (b = 0);
	  fn1 ();
	  if (e[a])
	    return 0;
	}
      for (; c <= 0; c++)
	for (;;)
	  ;
    }
  else
    e[0] = 0 != (d = f);
  return *d;
}