1 /* { dg-require-effective-target indirect_calls } */
2 
3 typedef int __attribute__ ((const)) (*x264_pixel_cmp_t)(void);
4 
5 typedef struct {
6     x264_pixel_cmp_t ssd;
7 } x264_pixel_function_t;
8 
x264_pixel_ssd_wxh(x264_pixel_function_t * pf,int i_width)9 int x264_pixel_ssd_wxh (x264_pixel_function_t *pf, int i_width) {
10     int i_ssd = 0, x;
11     for (x = 0; x < i_width; x++)
12       i_ssd += pf->ssd();
13     return i_ssd;
14 }
15