Beispiel #1
0
int
main (int argc, char **argv)
{
  tests_start_mpfr ();
  tests_expect_abort ();

  printf ("[tassert] Check for good handling of assertions.\n");
  MPFR_ASSERTN (0);

  tests_end_mpfr ();
  return -1; /* Should not be executed */
}
Beispiel #2
0
int
main (int argc, char **argv)
{
  tests_start_mpfr ();
  tests_expect_abort ();

  printf ("[tabort_defalloc1] Check for good handling of abort"
          " in memory function.\n");
  (*__gmp_allocate_func) ((size_t) -1);

  tests_end_mpfr ();
  return -1; /* Should not be executed */
}
Beispiel #3
0
int
main (int argc, char **argv)
{
  tests_start_mpfr ();
  tests_expect_abort ();

  printf ("[tabort_prec_max] Check for good handling of abort"
          " in memory function.\n");

  mpfr_abort_prec_max ();

  tests_end_mpfr ();
  return -1; /* Should not be executed */
}