1 /* { dg-options "-O2" } */ 2 3 typedef struct test input ; 4 struct test 5 { 6 int type ; 7 int symflag ; 8 }; Chv_copyEntriesToVector(input * chv,double * dvec)9Chv_copyEntriesToVector ( input *chv,double *dvec) 10 { 11 double *entries ; 12 int mm, nent; 13 int first, i, k , stride ; 14 if ( ((chv)->type == 1) ) 15 { 16 for ( i = 0 ; i < 10 ; i++) 17 { 18 dvec[2*mm] = entries[2*k] ; 19 k += stride ; 20 stride -= 2 ; 21 } 22 } 23 return(mm) ; 24 } 25