Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / pr40669.c
blobcc6bbc9e08a4ca0a46a34c40805694692f7cf5a9
1 /* PR middle-end/40669 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ffast-math" } */
5 double _Complex
6 test (int d, int t, double *x, double *y, double *z, int n,
7 double _Complex (*fnp) (double))
9 int m = n / 2;
10 double min = y[t], max = z[t], med = x[m * d + t];
11 double _Complex result = 0.0;
13 if (n == 0)
14 return 0.0;
16 if (min > med)
17 result += test (d, (t + 1) % d, x + (m + 1) * d, y, z, n - m - 1, fnp);
18 else if (max < med)
19 result += test (d, (t + 1) % d, x, y, z, m, fnp);
20 else
22 result += fnp (y[0] + x[m]);
23 result += test (d, (t + 1) % d, x + (m + 1) * d, y, z, n - m - 1, fnp);
25 return result;