aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/2004-02-02-NegativeZero.c
blob: 5a79f899ec798bd73e12358d62d2d8f449f0414b (plain)
1
2
3
4
5
6
7
8
9
void test(double X) {
  printf("%f %f\n", -0.0 - X, -X);
}
int main() {
  test(+0.0);
  test(-0.0);
  printf("negzero = %f  poszero = %f\n", -0.0, +0.0);
  return 0;
}