URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [vect/] [pr37143.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */
void
f(int NumberOfSideSets, int *ssNumDFperSide, float *ssDF)
{
int i;
float *newssDF = __null;
int *newssNumDF = new int [NumberOfSideSets];
int ndf, nextDF, numNewDF = 0;
int ii=0;
for (i=0; i<NumberOfSideSets; i++)
numNewDF += newssNumDF[i];
if (numNewDF > 0)
newssDF = new float [numNewDF];
nextDF = 0;
ndf = ssNumDFperSide[ii];
for (i=0; i<ndf; i++)
newssDF[nextDF++] = ssDF[i];
}
/* { dg-final { cleanup-tree-dump "vect" } } */
Go to most recent revision | Compare with Previous | Blame | View Log