From 72f8e2e394df4fe23827944525489d8a0f9e7706 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 29 Feb 2016 01:12:13 +0000 Subject: [tests/tversion.c] * Output support status of modifiers in gmp_printf (a bit like r10123 and r10124 in the trunk, except that macros PRINTF_T and PRINTF_L do not exist and their absence means here "yes"). * Output availability of intmax_t/uintmax_t based functions and *printf functions (merged changeset r10127 from the trunk). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10133 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tversion.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/tests/tversion.c b/tests/tversion.c index ba326940c..c361bbeb5 100644 --- a/tests/tversion.c +++ b/tests/tversion.c @@ -20,8 +20,13 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include +#include "mpfr-intmax.h" #include "mpfr-test.h" int @@ -87,6 +92,52 @@ main (void) mpfr_buildopt_decimal_p () ? "yes" : "no", mpfr_buildopt_gmpinternals_p () ? "yes" : "no"); + printf ("[tversion] intmax_t = " +#if defined(_MPFR_H_HAVE_INTMAX_T) + "yes" +#else + "no" +#endif + ", printf = " +#if defined(HAVE_STDARG) && !defined(MPFR_USE_MINI_GMP) + "yes" +#else + "no" +#endif + "\n"); + + printf ("[tversion] gmp_printf: hhd = " +#if defined(NPRINTF_HH) + "no" +#else + "yes" +#endif + ", lld = " +#if defined(NPRINTF_LL) + "no" +#else + "yes" +#endif + ", jd = " +#if defined(NPRINTF_J) + "no" +#else + "yes" +#endif + ", td = " +#if defined(NPRINTF_T) + "no" +#else + "yes" +#endif + ", Ld = " +#if defined(NPRINTF_L) + "no" +#else + "yes" +#endif + "\n"); + if (strcmp (mpfr_buildopt_tune_case (), MPFR_TUNE_CASE) != 0) { printf ("ERROR! mpfr_buildopt_tune_case() and MPFR_TUNE_CASE" -- cgit v1.2.1