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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [run-id-pr47593.c] - Rev 749

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

/* { dg-options "-O2 -fgraphite-identity" } */
 
struct Foo {
  int **p;
  int **q;
};
 
int __attribute__((noinline))
bar (void)
{
  struct Foo f;
  int j, i = 1;
  char *p;
  int *x = &i;
  int *y = &j;
  f.p = &y;
  f.q = &x;
  p = (char *)&f;
  for (j = 0; j < sizeof (int *); ++j)
    p++;
  return ***(int ***)p;
}
extern void abort (void);
int main()
{
  if (bar () != 1)
    abort ();
  return 0;
}
 

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

powered by: WebSVN 2.1.0

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