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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr39132.c] - Rev 754

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

/* { dg-do run } */
/* { dg-options "-ftree-loop-distribution" } */
 
extern void abort(void);
 
struct epic_private
{
  unsigned int *rx_ring;
  unsigned int rx_skbuff[5];
};
 
int
main (void)
{
  struct epic_private ep;
  unsigned int rx_ring[5];
  int i;
 
  ep.rx_skbuff[0] = 5;
 
  ep.rx_ring = rx_ring;
 
  for (i = 0; i < 5; i++)
    {
      ep.rx_ring[i] = i;
      ep.rx_skbuff[i] = 0;
    }
 
  if (ep.rx_skbuff[0] != 0)
    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.