summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-02-29 01:12:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-02-29 01:12:13 +0000
commit72f8e2e394df4fe23827944525489d8a0f9e7706 (patch)
tree612d3f3c0bcde43100f81262e630ba88cc362c7f
parentbca43e9f3a4a8726889b53e5ace1d686325d748f (diff)
downloadmpfr-72f8e2e394df4fe23827944525489d8a0f9e7706.tar.gz
[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
-rw-r--r--tests/tversion.c51
1 files changed, 51 insertions, 0 deletions
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 <stdlib.h>
+#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"