summaryrefslogtreecommitdiff
path: root/tests/tout_str.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-06-09 16:21:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-06-09 16:21:34 +0000
commit848beb58ea198fd097580c88aad2e3a1710ea2f6 (patch)
tree818bc126517334c30221369a1182e6dbf3dd6fd7 /tests/tout_str.c
parentf4f81f4b9304078e5d484c52209031391c57bb03 (diff)
downloadmpfr-848beb58ea198fd097580c88aad2e3a1710ea2f6.tar.gz
Clean-up and various changes to be able to build MPFR with g++.
But the following 3 tests currently fail with g++ 4.3.1: FAIL: tprintf FAIL: tsprintf FAIL: tfprintf This is an "Illegal instruction" error, so probably a bug in g++. [Edit: acinclude.m4 now uses gl_SIZE_MAX, typically from size_max.m4, but which is not installed on all machines; this will be added to the MPFR repository in changesets 5680 and 5683.] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5385 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tout_str.c')
-rw-r--r--tests/tout_str.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/tout_str.c b/tests/tout_str.c
index cda8d7f23..6033c129c 100644
--- a/tests/tout_str.c
+++ b/tests/tout_str.c
@@ -71,7 +71,8 @@ special (void)
int
main (int argc, char *argv[])
{
- int i, N=10000, r, p;
+ int i, N=10000, p;
+ mp_rnd_t rnd;
double d;
tests_start_mpfr ();
@@ -128,9 +129,9 @@ main (int argc, char *argv[])
#else
while (ABS(d) < DBL_MIN);
#endif
- r = RND_RAND ();
+ rnd = RND_RAND ();
p = 2 + randlimb () % 35;
- check (d, (mp_rnd_t) r, p);
+ check (d, rnd, p);
}
fclose (fout);