OSDN Git Service

2012-04-13 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr49603.c
1 /* { dg-do compile } */
2
3 struct gl_visual {
4     float AlphaScale;
5 };
6 struct gl_context {
7     struct gl_visual *Visual;
8 };
9 void quickdraw_rgb( struct gl_context * ctx,
10                     int width, int height)
11 {
12   int i, j;
13   unsigned char alpha[1600];
14   for (j=0; j<width; j++)
15     alpha[j] = (int) ctx->Visual->AlphaScale; 
16   for (i=0; i<height; i++)
17     foo( alpha);
18 }
19