Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20071108-1.c
blob25e71bf5f6b01e29721e4c393c96a27fee346e50
1 /* PR tree-optimization/33680 */
2 /* { dg-require-effective-target alloca } */
4 int
5 f (int dim, int *b, int *c)
7 int newcentroid[3][dim];
8 int *a = newcentroid[2];
9 int i, dist = 0;
10 __builtin_memcpy (newcentroid, c, sizeof (newcentroid));
11 for (i = 0; i < dim; i++)
12 dist += (a[i] - b[i]) * (a[i] - b[i]);
13 return dist;