view gcc/testsuite/gcc.dg/graphite/pr71824-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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);
}