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.c-torture/] [execute/] [pr38048-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void abort(void);
2
 
3
int foo ()
4
{
5
  int mat[2][1];
6
  int (*a)[1] = mat;
7
  int det = 0;
8
  int i;
9
  mat[0][0] = 1;
10
  mat[1][0] = 2;
11
  for (i = 0; i < 2; ++i)
12
    det += a[i][0];
13
  return det;
14
}
15
 
16
int main()
17
{
18
  if (foo () != 3)
19
    abort ();
20
  return 0;
21
}
22
 

powered by: WebSVN 2.1.0

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