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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [scal.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
int g1, g2;
2
 
3
void
4
write_at (addr, off, val)
5
     int *addr;
6
     int off;
7
     int val;
8
{
9
  g2 = 1;
10
  addr[off] = val;
11
  g2++;
12
}
13
 
14
main ()
15
{
16
  g2 = 12;
17
  write_at (&g1, &g2 - &g1, 12345);
18
  printf ("%d\n", g2);
19
}

powered by: WebSVN 2.1.0

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