2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr39132.c
blobf6e2907e0d6c58b7c680c54ee9d77455f20b1638
1 /* { dg-do run } */
2 /* { dg-options "-ftree-loop-distribution" } */
4 extern void abort(void);
6 struct epic_private
8 unsigned int *rx_ring;
9 unsigned int rx_skbuff[5];
12 int
13 main (void)
15 struct epic_private ep;
16 unsigned int rx_ring[5];
17 int i;
19 ep.rx_skbuff[0] = 5;
21 ep.rx_ring = rx_ring;
23 for (i = 0; i < 5; i++)
25 ep.rx_ring[i] = i;
26 ep.rx_skbuff[i] = 0;
29 if (ep.rx_skbuff[0] != 0)
30 abort ();
32 return 0;