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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
int a[2];
2
 
3
f (b)
4
{
5
  unsigned int i;
6
  for (i = 0; i < b; i++)
7
    a[i] = i - 2;
8
}
9
 
10
main ()
11
{
12
  a[0] = a[1] = 0;
13
  f (2);
14
  if (a[0] != -2 || a[1] != -1)
15
    abort ();
16
  exit (0);
17
}

powered by: WebSVN 2.1.0

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