summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/20020304-1.c
blob: f6d6b4e49a7453d3ce9ad50f2c6fd8742a0e3850 (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
29
30
31
32
33
34
35
36
37
/* { dg-do compile } */
/* { dg-options "-O -fssa -fssa-ccp" } */

double a[10][35], b[10][8];
int c, c, d, e, f, g, h;

int foo ()
{
  int i, j, k, l;

  if (c > 10)
    c = 10;

  for (j = 0; j < c; j++)
    {
      k = 0;
      for (l = 0; l < h; l++)
	{
	  if (d != 5)
	    return -1;
	  k = l * g;
	  a[j][k] = (double) e; k++;
	  a[j][k] = (double) f; k++;
	}
      for (i = 0;i < 35; i++)
        {
	  if (a[j][i] >= 0.9)
	    a[j][i] = 0.9;
	  if (a[j][i] <= 0.1)
	    a[j][i] = 0.1;
        }
      k = 0;
      b[j][k] = (double) e; k++;
      b[j][k] = (double) f; k++;
    }
  return 0;
}
OpenPOWER on IntegriCloud