aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57343.c
blob: b05bad5cb43aa1c410b8be096f6a3cd3b7d7a60b (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 run } */

int c = 0;

int
main ()
{
  int i, f = 1;
  for (i = 0; i < 5; i++)
    {
      --c;
      unsigned char h = c * 100;
      if (h == 0)
	{
	  f = 0;
	  break;
	}
    }
  if (f != 1)
    __builtin_abort ();
  return 0;
}