annotate gcc/testsuite/gcc.dg/vect/O1-pr33854.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 extern void *malloc (__SIZE_TYPE__ __size);
kono
parents:
diff changeset
5 typedef struct VMatrix_ VMatrix;
kono
parents:
diff changeset
6 struct VMatrix_
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int dim;
kono
parents:
diff changeset
9 int t2;
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11 void uniform_correlation_matrix (VMatrix * v)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 double *xbar = ((void *) 0);
kono
parents:
diff changeset
14 int m = v->dim;
kono
parents:
diff changeset
15 int i;
kono
parents:
diff changeset
16 xbar = malloc (m * sizeof *xbar);
kono
parents:
diff changeset
17 for (i = 0; i < m; i++)
kono
parents:
diff changeset
18 xbar[i] /= m;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21