aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55011.c
blob: 67b2613f6ece7c1ce0285164872f9421836f08b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */

char a;

void f(void)
{
  char b = 2;

  for(;;)
    {
      unsigned short s = 1, *p = &s, *i;

      for(*i = 0; *i < 4; ++*i)
	if(a | (*p /= (b += !!a)) <= 63739)
	  return;

      if(!s)
	a = 0;

      for(;;);
    }
}