beta-0.89.2
[luatex.git] / source / libs / mpfr / mpfrtest.c
blob545a061a9c53e633f1de043ff9b8f2538e3bc560
1 /* mpfrtst.c: Basic test for libmpfr
3 * Copyright (C) 2014 Peter Breitenlohner <tex-live@tug.org>
4 * You may freely use, modify and/or distribute this file.
5 */
7 #include <stdio.h>
8 #include <gmp.h>
9 #include <mpfr.h>
11 int main (int argc, char **argv)
13 printf ("%s: Compiled with mpfr version %s; using %s\n",
14 argv[0], MPFR_VERSION_STRING, mpfr_get_version());
15 printf ("%s: Compiled with gmp version %d.%d.%d; using %s\n",
16 argv[0], __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, __GNU_MP_VERSION_PATCHLEVEL,
17 gmp_version);
18 return 0;