blob: 2c4613efb941ea1f9aca7c20b09f1bffda7fa300 [file] [log] [blame]
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
/* { dg-do compile } */
extern void *malloc (__SIZE_TYPE__ __size);
typedef struct VMatrix_ VMatrix;
struct VMatrix_
{
int dim;
int t2;
};
void uniform_correlation_matrix (VMatrix * v)
{
double *xbar = ((void *) 0);
int m = v->dim;
int i;
xbar = malloc (m * sizeof *xbar);
for (i = 0; i < m; i++)
xbar[i] /= m;
}