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] - 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 run } */
2
/* { dg-options "-ftree-loop-distribution" } */
3
 
4
extern void abort(void);
5
 
6
struct epic_private
7
{
8
  unsigned int *rx_ring;
9
  unsigned int rx_skbuff[5];
10
};
11
 
12
int
13
main (void)
14
{
15
  struct epic_private ep;
16
  unsigned int rx_ring[5];
17
  int i;
18
 
19
  ep.rx_skbuff[0] = 5;
20
 
21
  ep.rx_ring = rx_ring;
22
 
23
  for (i = 0; i < 5; i++)
24
    {
25
      ep.rx_ring[i] = i;
26
      ep.rx_skbuff[i] = 0;
27
    }
28
 
29
  if (ep.rx_skbuff[0] != 0)
30
    abort ();
31
 
32
  return 0;
33
}
34
 

powered by: WebSVN 2.1.0

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