blob: 67f64dbafc8b75740798488fc10c6998ffac973a [file] [log] [blame]
/* { dg-skip-if "signed zero not supported" { "vax-*-*" } } */
extern void abort (void);
double
__attribute__ ((noinline))
not_fabs (double x)
{
return x >= 0.0 ? x : -x;
}
int main()
{
double x = -0.0;
double y;
y = not_fabs (x);
if (!__builtin_signbit (y))
abort();
return 0;
}