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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [931009-1.c] - Rev 826

Compare with Previous | Blame | View Log

main ()
{
  f ();
  exit (0);
}
 
static
g (out, size, lo, hi)
     int *out, size, lo, hi;
{
  int j;
 
  for (j = 0; j < size; j++)
    out[j] = j * (hi - lo);
}
 
 
f ()
{
  int a[2];
 
  g (a, 2, 0, 1);
 
  if (a[0] != 0 || a[1] != 1)
    abort ();
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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