/* Test of fabsl() function.
- Copyright (C) 2010-2012 Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "macros.h"
#include "minus-zero.h"
-volatile long double x;
-long double y;
-long double zero = 0.0L;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MINUS_ZERO minus_zerol
+#define FABS fabsl
+#define RANDOM randoml
+#include "test-fabs.h"
int
main ()
y = fabsl (x);
ASSERT (y == 0.6L);
- /* Signed zero. */
- x = 0.0L;
- y = fabsl (x);
- ASSERT (y == 0.0L);
- ASSERT (memcmp (&y, &zero, sizeof y) == 0);
-
- x = minus_zerol;
- y = fabsl (x);
- ASSERT (y == 0.0L);
- ASSERT (memcmp (&y, &zero, sizeof y) == 0);
+ test_function ();
return 0;
}