projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getloadavg: clean out old Emacs and Autoconf cruft
[gnulib.git]
/
tests
/
test-modff.c
diff --git
a/tests/test-modff.c
b/tests/test-modff.c
index
42fd83f
..
295ba3d
100644
(file)
--- a/
tests/test-modff.c
+++ b/
tests/test-modff.c
@@
-23,11
+23,16
@@
#include "signature.h"
SIGNATURE_CHECK (modff, float, (float, float *));
#include "signature.h"
SIGNATURE_CHECK (modff, float, (float, float *));
+#include <float.h>
+
#include "macros.h"
#include "macros.h"
-volatile float x;
-float y;
-float z;
+#define DOUBLE float
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define MODF modff
+#define RANDOM randomf
+#include "test-modf.h"
int
main ()
int
main ()
@@
-44,5
+49,7
@@
main ()
ASSERT (y >= -0.972408f && y <= -0.972406f);
ASSERT (z == -5.0f);
ASSERT (y >= -0.972408f && y <= -0.972406f);
ASSERT (z == -5.0f);
+ test_function ();
+
return 0;
}
return 0;
}