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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [950714-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 array[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
2
 
3
main ()
4
{
5
  int i, j;
6
  int *p;
7
 
8
  for (i = 0; i < 10; i++)
9
    for (p = &array[0]; p != &array[9]; p++)
10
      if (*p == i)
11
        goto label;
12
 
13
 label:
14
  if (i != 1)
15
    abort ();
16
  exit (0);
17
}

powered by: WebSVN 2.1.0

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