1 /* PR tree-optimization/86835 */
3 /* { dg-options "-O2 -ffast-math -Wuninitialized" } */
5 __attribute__((noipa
)) void
6 foo (int n
, double *x
, double *y
)
7 { /* { dg-bogus "is used uninitialized in this function" "" { target *-*-* } 0 } */
10 for (i
= 0; i
< n
; ++i
)
11 y
[3] += __builtin_sin (x
[i
] / b
);
20 double y
[] = { 16.0, 64.0, 128.0, 0.0, 2.0 };
22 if (__builtin_fabs (y
[0] - 8.0) > 0.0001
23 || __builtin_fabs (y
[1] - 16.0) > 0.0001
24 || __builtin_fabs (y
[2] - 64.0) > 0.0001