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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr21173.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
void abort (void);
2
 
3
char q;
4
void *a[2];
5
 
6
void foo (char *p)
7
{
8
  int i;
9
  for (i = 0; i < 2; i++)
10
    a[i] += p - &q;
11
}
12
 
13
int main (void)
14
{
15
  int i;
16
  foo (&q);
17
  for (i = 0; i < 2; i ++)
18
    if (a[i])
19
      abort ();
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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