URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [vect/] [pr37143.C] - Rev 751
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