projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extern-inline: avoid compilation error with HP-UX cc
[gnulib.git]
/
tests
/
test-logf.c
diff --git
a/tests/test-logf.c
b/tests/test-logf.c
index
2ff5076
..
40ff2c1
100644
(file)
--- a/
tests/test-logf.c
+++ b/
tests/test-logf.c
@@
-1,5
+1,5
@@
/* Test of logf() function.
/* Test of logf() function.
- Copyright (C) 2010-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2010-201
3
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
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
@@
-23,10
+23,19
@@
#include "signature.h"
SIGNATURE_CHECK (logf, float, (float));
#include "signature.h"
SIGNATURE_CHECK (logf, float, (float));
+#include <float.h>
+
+#include "minus-zero.h"
#include "macros.h"
#include "macros.h"
-volatile float x;
-float y;
+#define DOUBLE float
+#define HUGEVAL HUGE_VALF
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define MINUS_ZERO minus_zerof
+#define LOG logf
+#define RANDOM randomf
+#include "test-log.h"
int
main ()
int
main ()
@@
-36,5
+45,7
@@
main ()
y = logf (x);
ASSERT (y >= -0.5108257f && y <= -0.5108256f);
y = logf (x);
ASSERT (y >= -0.5108257f && y <= -0.5108256f);
+ test_function ();
+
return 0;
}
return 0;
}