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/] [unsorted/] [scal.c] - Blame information for rev 301

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

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