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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [loop-2c.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
int a[2];
2
 
3
__inline__ f (b, o)
4
{
5
  unsigned int i;
6
  int *p;
7
  for (p = &a[b], i = b; --i < ~0; )
8
    *--p = i * 3 + o;
9
}
10
 
11
g(int b)
12
{
13
  f (b, (int)a);
14
}
15
 
16
main ()
17
{
18
  a[0] = a[1] = 0;
19
  g (2);
20
  if (a[0] != (int)a || a[1] != (int)a + 3)
21
    abort ();
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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