Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */ |
2 /* { dg-do compile } */ | |
3 | |
4 extern void *malloc (__SIZE_TYPE__ __size); | |
5 typedef struct VMatrix_ VMatrix; | |
6 struct VMatrix_ | |
7 { | |
8 int dim; | |
9 int t2; | |
10 }; | |
11 void uniform_correlation_matrix (VMatrix * v) | |
12 { | |
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; | |
19 } | |
20 | |
21 |