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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000717-3.c] - Blame information for rev 297

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

Line No. Rev Author Line
1 297 jeremybenn
int c = -1;
2
 
3
foo (p)
4
     int *p;
5
{
6
  int x;
7
  int a;
8
 
9
  a = p[0];
10
  x = a + 5;
11
  a = c;
12
  p[0] = x - 15;
13
  return a;
14
}
15
 
16
int main()
17
{
18
   int b = 1;
19
   int a = foo(&b);
20
 
21
   if (a != -1 || b != (1 + 5 - 15))
22
     abort ();
23
 
24
   exit (0);
25
}
26
 

powered by: WebSVN 2.1.0

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