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/] [loop-14.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
int a3[3];
2
 
3
void f(int *a)
4
{
5
  int i;
6
 
7
  for (i=3; --i;)
8
    a[i] = 42 / i;
9
}
10
 
11
int
12
main ()
13
{
14
  f(a3);
15
 
16
  if (a3[1] != 42 || a3[2] != 21)
17
    abort ();
18
 
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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