view gcc/testsuite/gcc.c-torture/compile/990527-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

typedef struct {
    int dummy;
    int width, height;           
} XWindowAttributes;

typedef struct {
    short x, y;
} XPoint;
    
extern unsigned int ya_random (void);
extern int XDrawPoints(XPoint*, int);

static int iterations, offset;
static int  xsym, ysym;

static void
hurm (void)
{
  XWindowAttributes xgwa;
  int xlim, ylim, x, y, i;
  XPoint points [4];


  for (i = 0; i < iterations; i++)
    {
      int j = 0;
      j++;
      if (xsym)
        {
          points [j].x = xlim - x;
          j++;
        }
      points [j].x = x;
      j++;
    }
}