summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/id-17.c
blob: c93c211e459a96f1b025dc2d39ccce0cf1a9a49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
typedef struct
{
  int offset_for_ref_frame[256];
} seq_parameter_set_rbsp_t;

typedef struct
{
  unsigned int num_ref_frames_in_pic_order_cnt_cycle;
  int offset_for_ref_frame[1];
  int auto_crop_right;
} ImageParameters;

ImageParameters *img;

void GenerateSequenceParameterSet(seq_parameter_set_rbsp_t *sps)
{
  unsigned i;
  for (i=0; i<img->num_ref_frames_in_pic_order_cnt_cycle; i++)
    sps->offset_for_ref_frame[i] = img->offset_for_ref_frame[i];
 error("foo");
}