OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [O1-pr33854.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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
/* { dg-final { cleanup-tree-dump "vect" } } */
22
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.