1 /* { dg-do compile } */ 2 3 void f(int NumberOfSideSets,int * ssNumDFperSide,float * ssDF)4f(int NumberOfSideSets, int *ssNumDFperSide, float *ssDF) 5 { 6 int i; 7 float *newssDF = __null; 8 int *newssNumDF = new int [NumberOfSideSets]; 9 int ndf, nextDF, numNewDF = 0; 10 int ii=0; 11 for (i=0; i<NumberOfSideSets; i++) 12 numNewDF += newssNumDF[i]; 13 if (numNewDF > 0) 14 newssDF = new float [numNewDF]; 15 nextDF = 0; 16 ndf = ssNumDFperSide[ii]; 17 for (i=0; i<ndf; i++) 18 newssDF[nextDF++] = ssDF[i]; 19 } 20 21