summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/O1-pr41008.c
blob: bbdea127ce82170101097260b61f4b6bb5555a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */

double heating[2][2];

void foo (int, int);

void map_do()
{
  int jsav, ksav, k, j;

  for(k = 0; k < 2; k++)
    for(j = 0; j < 2; j++)
      if (heating[k][j] > 0.)
        {
          jsav = j;
          ksav = k;
        }

  foo (jsav, ksav);
}

/* { dg-final { cleanup-tree-dump "vect" } } */