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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [scal.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 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.