gcc/testsuite/gcc.dg/torture/pr49603.c
raw| 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 foo (char *); |
| 10 | void quickdraw_rgb( struct gl_context * ctx, |
| 11 | int width, int height) |
| 12 | { |
| 13 | int i, j; |
| 14 | unsigned char alpha[1600]; |
| 15 | for (j=0; j<width; j++) |
| 16 | alpha[j] = (int) ctx->Visual->AlphaScale; |
| 17 | for (i=0; i<height; i++) |
| 18 | foo( alpha); |
| 19 | } |
| 20 |