summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/vect/pr43771.cc
blob: 1a2d09aae932bfcebf007288a72d3493577b57ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */

void KWayNodeRefine__(int nparts, int *gpwgts, int *badminpwgt, int
*badmaxpwgt)
{
   int i;

   for (i=0; i<nparts; i+=2) {
       badminpwgt[i] = badminpwgt[i+1] = gpwgts[i]+gpwgts[i+1];
       badmaxpwgt[i] = badmaxpwgt[i+1] = gpwgts[i]+gpwgts[i+1];
   }
}

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