aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr49603.c
blob: 90f51e5059cd1b1b8dc296179139203336e44c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */

struct gl_visual {
    float AlphaScale;
};
struct gl_context {
    struct gl_visual *Visual;
};
void quickdraw_rgb( struct gl_context * ctx,
		    int width, int height)
{
  int i, j;
  unsigned char alpha[1600];
  for (j=0; j<width; j++)
    alpha[j] = (int) ctx->Visual->AlphaScale; 
  for (i=0; i<height; i++)
    foo( alpha);
}