PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr71824-2.c
blob18176568d4aa4f4c5f8dc475203bdd70abfa65cb
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -floop-nest-optimize" } */
4 typedef struct { float x1; } bx;
5 typedef struct {
6 int w;
7 short o;
8 } T2P;
9 T2P a;
10 int b;
11 void fn2();
12 void fn3(bx*,short);
13 void fn1() {
14 unsigned i = 0;
15 int c;
16 bx *d;
17 bx **h;
18 if (b == 0) {
19 fn2();
20 return;
22 for (; c; c++)
23 for (; i < 100; i++) {
24 d = h[i];
25 d->x1 = a.w;
27 for (; i < 100; i++) {
28 d = h[i];
29 d->x1 = a.w;
31 if (a.o)
32 for (; b;)
33 fn3(d, a.o);