Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/pr48596.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* PR target/48596 */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ enum { nrrdCenterUnknown, nrrdCenterNode, nrrdCenterCell, nrrdCenterLast }; typedef struct { int size; int center; } NrrdAxis; typedef struct { int dim; NrrdAxis axis[10]; } Nrrd; typedef struct { } NrrdKernel; typedef struct { const NrrdKernel *kernel[10]; int samples[10]; } Info; void foo (Nrrd *nout, Nrrd *nin, const NrrdKernel *kernel, const double *parm, const int *samples, const double *scalings) { Info *info; int d, p, np, center; for (d=0; d<nin->dim; d++) { info->kernel[d] = kernel; if (samples) info->samples[d] = samples[d]; else { center = _nrrdCenter(nin->axis[d].center); if (nrrdCenterCell == center) info->samples[d] = nin->axis[d].size*scalings[d]; else info->samples[d] = (nin->axis[d].size - 1)*scalings[d] + 1; } } }