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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [930513-2.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
sub3 (i)
2
     const int *i;
3
{
4
}
5
 
6
eq (a, b)
7
{
8
  static int i = 0;
9
  if (a != i)
10
    abort ();
11
  i++;
12
}
13
 
14
main ()
15
{
16
  int i;
17
 
18
  for (i = 0; i < 4; i++)
19
    {
20
      const int j = i;
21
      int k;
22
      sub3 (&j);
23
      k = j;
24
      eq (k, k);
25
    }
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

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