1 /* { dg-options "-O2 -mcmodel=small -fPIC" } */
2 /* { dg-do compile } */
4 extern int __finite (double __value
) __attribute__ ((__nothrow__
)) __attribute__ ((__const__
));
5 extern int __finitef (float __value
) __attribute__ ((__nothrow__
)) __attribute__ ((__const__
));
6 extern int __signbit (double __value
) __attribute__ ((__nothrow__
)) __attribute__ ((__const__
));
7 extern int __signbitf (float __value
) __attribute__ ((__nothrow__
)) __attribute__ ((__const__
));
9 __ecvt_r (value
, ndigit
, decpt
, sign
, buf
, len
)
11 int ndigit
, *decpt
, *sign
, len
;
14 if ((sizeof (value
) == sizeof (float) ? __finitef (value
) : __finite (value
)) && value
!= 0.0)
28 if (ndigit
<= 0 && len
> 0)
31 *sign
= (sizeof (value
) == sizeof (float) ? __finitef (value
) : __finite (value
)) ? (sizeof (value
) == sizeof (float) ? __signbitf (value
) : __signbit (value
)) != 0 : 0;