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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr45991.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fstrict-overflow" } */
3
 
4
struct S
5
{
6
  int i;
7
};
8
 
9
char A[64];
10
 
11
void foo (char **dst, int i)
12
{
13
  char *p = A + 16;
14
  while (i--)
15
    {
16
      int b = ((struct S *) (&p[i * 16 + 4]))->i;
17
      char *c = A + i * 16;
18
      dst[i] = c + b;
19
    }
20
}

powered by: WebSVN 2.1.0

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