1 /* { dg-do compile } */
2 
KWayNodeRefine__(int nparts,int * gpwgts,int * badminpwgt,int * badmaxpwgt)3 void KWayNodeRefine__(int nparts, int *gpwgts, int *badminpwgt, int
4 *badmaxpwgt)
5 {
6    int i;
7 
8    for (i=0; i<nparts; i+=2) {
9        badminpwgt[i] = badminpwgt[i+1] = gpwgts[i]+gpwgts[i+1];
10        badmaxpwgt[i] = badmaxpwgt[i+1] = gpwgts[i]+gpwgts[i+1];
11    }
12 }
13 
14