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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr22061-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
int N = 1;
2
void foo() {} /* Necessary to trigger the original ICE.  */
3
void bar (char a[2][N]) { a[1][0] = N; }
4
int
5
main (void)
6
{
7
  void *x;
8
 
9
  N = 4;
10
  x = alloca (2 * N);
11
  memset (x, 0, 2 * N);
12
  bar (x);
13
  if (N[(char *) x] != N)
14
    abort ();
15
  exit (0);
16
}

powered by: WebSVN 2.1.0

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