summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20040317-2.c
blob: 3c8ee2b8ec5ca428f48f4168512abad3166df4fa (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
typedef struct _ScaleRec *ScaleWidget;
typedef struct
{
  short *x;
  unsigned short *width;
} Table;
typedef struct
{
  Table table;
} ScalePart;
typedef struct _ScaleRec
{
  ScalePart scale;
} ScaleRec;
static int
FindPixel (ScaleWidget sw, short x, short y,
       short * img_x, short * img_y, unsigned long * img_pixel)
{
  if (sw->scale.table.x[(int) *img_x] + 
      (short) sw->scale.table.width[(int) *img_x] < x)
    {
      ++*img_x;
      return FindPixel (sw, x, y, img_x, img_y, img_pixel);
    }
}