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/] [941014-1.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
int f (int a, int b) { }
2
 
3
main ()
4
{
5
  unsigned long addr1;
6
  unsigned long addr2;
7
 
8
  addr1 = (unsigned long) &f;
9
  addr1 += 5;
10
  addr2 = 5 + (unsigned long) &f;
11
 
12
  if (addr1 != addr2)
13
    abort ();
14
  exit (0);
15
}

powered by: WebSVN 2.1.0

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