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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
int __attribute__ ((noinline))
2
foo ()
3
{
4
  const int a[8] = { 0, 1, 2, 3, 4, 5, 6, 7 };
5
  int i, sum;
6
 
7
  sum = 0;
8
  for (i = 0; i < sizeof (a) / sizeof (*a); i++)
9
    sum += a[i];
10
 
11
  return sum;
12
}
13
 
14
int
15
main ()
16
{
17
  if (foo () != 28)
18
    abort ();
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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