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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [index-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
int a[] =
2
{
3
  0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
4
  10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
5
  20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
6
  30, 31, 32, 33, 34, 35, 36, 37, 38, 39
7
};
8
 
9
int
10
f (long n)
11
{
12
  return a[n - 100000];
13
}
14
 
15
main ()
16
{
17
  if (f (100030L) != 30)
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.