diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-01-16 09:53:15 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-01-16 09:53:15 +0000 |
commit | 77a64c13bd21969f377d14b9081877fc2d5673c9 (patch) | |
tree | ba348438644a719bdaad3f0eb75ef1e0eff9175d /tests/tsprintf.c | |
parent | fdb28ce5102d0c0cdb549dcc78dba3370c787038 (diff) | |
download | mpfr-77a64c13bd21969f377d14b9081877fc2d5673c9.tar.gz |
acinclude.m4: Check if %Ld specification is supported (not always the case with MS Windows)
tests/tfprintf.c tests/tprintf.c tests/tsprintf.c: do not check %Ld specification when not available.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5826 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsprintf.c')
-rw-r--r-- | tests/tsprintf.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c index 9fca13304..1d9801966 100644 --- a/tests/tsprintf.c +++ b/tests/tsprintf.c @@ -489,11 +489,8 @@ mixed (void) x); check_vsprintf ("-12345678.9, 121", "%.1Rf, %i", x, i); check_vsprintf ("-12345678, 1e240/45b352", "%.0R*f, %Qx", GMP_RNDZ, x, mpq); - check_vsprintf ("121, -12345678.875000000000, 1.290323", "%i, %.*Rf, %Ff", - i, 12, x, mpf); - n1 = check_vsprintf ("00000010610209857723, -1.2345678875e+07, 0.032258", - "%.*Zi, %R*e, %Lf%n", 20, mpz, rnd, x, d, &n2); - + n1 = check_vsprintf ("121, -12345678.875000000000, 1.290323", "%i, %.*Rf, %Ff%n", + i, 12, x, mpf, &n2); if (n1 != n2) { printf ("error in number of characters written by mpfr_vsprintf\n"); @@ -501,6 +498,12 @@ mixed (void) printf (" got: %d\n", n1); exit (1); } + +#ifndef NO_GMP_PRINTF_L + check_vsprintf ("00000010610209857723, -1.2345678875e+07, 0.032258", + "%.*Zi, %R*e, %Lf", 20, mpz, rnd, x, d); +#endif + mpf_clear (mpf); mpq_clear (mpq); mpz_clear (mpz); |