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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [990513-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
#include <string.h>
2
 
3
void foo (int *BM_tab, int j)
4
{
5
  int *BM_tab_base;
6
 
7
  BM_tab_base = BM_tab;
8
  BM_tab += 0400;
9
  while (BM_tab_base != BM_tab)
10
    {
11
      *--BM_tab = j;
12
      *--BM_tab = j;
13
      *--BM_tab = j;
14
      *--BM_tab = j;
15
    }
16
}
17
 
18
int main ()
19
{
20
  int BM_tab[0400];
21
  memset (BM_tab, 0, sizeof (BM_tab));
22
  foo (BM_tab, 6);
23
  if (BM_tab[0] != 6)
24
    abort ();
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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