]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/graphite/pr39335.c
Modify the testsuite for the new Graphite.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / graphite / pr39335.c
CommitLineData
2ac57409 1/* { dg-options "-O2" } */
7d4fba4a
SP
2
3typedef unsigned char byte;
4typedef struct gx_device_s gx_device;
5typedef struct gs_devn_params_s gs_devn_params;
6typedef struct gs_devn_params_s {
7 struct compressed_color_list_s * compressed_color_list;
8} gs_devn_params_t;
9int devn_unpack_row(gx_device * dev, int num_comp,
10 gs_devn_params * pdevn_params, int width, byte * in,
11 byte * out)
12{
13 int i, comp_num, pixel_num;
14 if (pdevn_params->compressed_color_list == ((void *)0))
15 {
16 for (pixel_num = 0; pixel_num < width; pixel_num++)
17 for (i = 0; i < num_comp; i++)
18 *out++ = *in++;
19 }
20}