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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [loop-2b.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#include <limits.h>
2
 
3
int a[2];
4
 
5
f (int i)
6
{
7
  for (; i < INT_MAX; i++)
8
    {
9
      a[i] = -2;
10
      if (&a[i] == &a[1])
11
        break;
12
    }
13
}
14
 
15
main ()
16
{
17
  a[0] = a[1] = 0;
18
  f (0);
19
  if (a[0] != -2 || a[1] != -2)
20
    abort ();
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

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