summaryrefslogtreecommitdiff
path: root/tests/tversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tversion.c')
-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"