aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr71824-2.c
blob: 18176568d4aa4f4c5f8dc475203bdd70abfa65cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* { dg-do compile } */
/* { dg-options "-O2 -floop-nest-optimize" } */

typedef struct { float x1; } bx;
typedef struct {
    int w;
    short o;
} T2P;
T2P a;
int b;
void fn2();
void fn3(bx*,short);
void fn1() {
    unsigned i = 0;
    int c;
    bx *d;
    bx **h;
    if (b == 0) {
	fn2();
	return;
    }
    for (; c; c++)
      for (; i < 100; i++) {
	  d = h[i];
	  d->x1 = a.w;
      }
    for (; i < 100; i++) {
	d = h[i];
	d->x1 = a.w;
    }
    if (a.o)
      for (; b;)
	fn3(d, a.o);
}