pantry/projects/gnu.org/gcc/test.c
Jacob Heider 7dcc53658f
+gnu.org/{gawk,mpc,mpfr,gcc,binutils,texinfo} (#97)
* add as much of gnu as we need to get gcc built

* address code review
2023-01-17 18:39:25 -05:00

14 lines
229 B
C

#include <gmp.h>
#include <stdlib.h>
int main()
{
mpz_t i, j, k;
mpz_init_set_str(i, "1a", 16);
mpz_init(j);
mpz_init(k);
mpz_sqrtrem(j, k, i);
if (mpz_get_si(j) != 5 || mpz_get_si(k) != 1)
abort();
return 0;
}