Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / O1-pr33854.c
blob346da6b60bdea5265ad8f6dcd76276d1d8f4fece
1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2 /* { dg-do compile } */
4 extern void *malloc (long unsigned int __size);
5 typedef struct VMatrix_ VMatrix;
6 struct VMatrix_
8 int dim;
9 int t2;
11 void uniform_correlation_matrix (VMatrix * v)
13 double *xbar = ((void *) 0);
14 int m = v->dim;
15 int i;
16 xbar = malloc (m * sizeof *xbar);
17 for (i = 0; i < m; i++)
18 xbar[i] /= m;
21 /* { dg-final { cleanup-tree-dump "vect" } } */