aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990527-1.c
blob: 4744030307aa7dc46a6de329dc0a753921932cd4 (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
35
36
37
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++;
    }
}