aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr103859.c
blob: c58be5c15af6f089267282a338411d8a3265c731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR middle-end/103859 */
/* { dg-do compile } */
/* { dg-options "" } */

typedef struct dcmplx dcmplx;

struct dcmplx {
  double re;
  double im;
};

dcmplx horner(int n, dcmplx p[n], dcmplx x);

int main(void)
{
  int i, n;
  dcmplx x[n + 1], f[n + 1];

  horner(n + 1, f, x[i]);

  return 0;
}