| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-O3" } */ |
| 3 |
|
| 4 |
void glFinish(); |
| 5 |
struct _Vector_base { |
| 6 |
struct { |
| 7 |
unsigned _M_start; |
| 8 |
} _M_impl; |
| 9 |
}; |
| 10 |
class vector : _Vector_base { |
| 11 |
public: |
| 12 |
vector(long) {} |
| 13 |
unsigned *data() { return &_M_impl._M_start; } |
| 14 |
}; |
| 15 |
void *PutBitsIndexedImpl_color_table; |
| 16 |
int PutBitsIndexedImpl_dstRectHeight; |
| 17 |
char *PutBitsIndexedImpl_src_ptr; |
| 18 |
void PutBitsIndexedImpl() { |
| 19 |
vector unpacked_buf(PutBitsIndexedImpl_dstRectHeight); |
| 20 |
unsigned *dst_ptr = unpacked_buf.data(); |
| 21 |
for (int x; x; x++) { |
| 22 |
char i = *PutBitsIndexedImpl_src_ptr++; |
| 23 |
dst_ptr[x] = static_cast<int *>(PutBitsIndexedImpl_color_table)[i]; |
| 24 |
} |
| 25 |
glFinish(); |
| 26 |
} |