aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58143-3.c
blob: 23ae9cd39cefa74066567653c1048e3b7e14eecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */
/* { dg-additional-options "-fstrict-overflow" } */

int a, b, c, d, e;

int
main ()
{
  for (b = 4; b > -30; b--)
    for (; c;)
      for (;;)
	{
	  e = a > __INT_MAX__ - b;
	  if (d)
	    break;
	}
  return 0;
}