aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/pr57876.c
blob: bcf691272862fc4b5a4a2f59695e6750a3e0ea5f (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
/* PR rtl-optimization/57876 */

extern void abort (void);
int a, b = 1, c, *d = &c, f, *g, h, j;
static int e;

int
main ()
{
  int i;
  for (i = 0; i < 2; i++)
    {
      long long k = b;
      int l;
      for (f = 0; f < 8; f++)
	{
	  int *m = &e;
	  j = *d;
	  h = a * j - 1;
	  *m = (h == 0) < k;
	  g = &l;
	}
    }
  if (e != 1)
    abort ();
  return 0;
}