diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-18 11:12:01 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-18 11:12:01 +0000 |
commit | 0c2f0333a4e539325da80cdf3fb182cd17134665 (patch) | |
tree | de5daa66b5595292a33c25110aa58ff8bff75543 /Build/source/libs/mpfr/mpfrtest.c | |
parent | db612d5045ef55da386a2c3350d4811d1da1a858 (diff) |
Add libs/gmp and libs/mpfr in preparation for MetaPost 2.0
git-svn-id: svn://tug.org/texlive/trunk@34274 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/mpfr/mpfrtest.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfrtest.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/libs/mpfr/mpfrtest.c b/Build/source/libs/mpfr/mpfrtest.c new file mode 100644 index 00000000000..545a061a9c5 --- /dev/null +++ b/Build/source/libs/mpfr/mpfrtest.c @@ -0,0 +1,19 @@ +/* mpfrtst.c: Basic test for libmpfr + * + * Copyright (C) 2014 Peter Breitenlohner <tex-live@tug.org> + * You may freely use, modify and/or distribute this file. + */ + +#include <stdio.h> +#include <gmp.h> +#include <mpfr.h> + +int main (int argc, char **argv) +{ + printf ("%s: Compiled with mpfr version %s; using %s\n", + argv[0], MPFR_VERSION_STRING, mpfr_get_version()); + printf ("%s: Compiled with gmp version %d.%d.%d; using %s\n", + argv[0], __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, __GNU_MP_VERSION_PATCHLEVEL, + gmp_version); + return 0; +} |