test-matherr.c 326 B

123456789101112131415161718192021222324
  1. #include <math.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. static int fail = 1;
  5. int
  6. matherr (struct exception *s)
  7. {
  8. printf ("matherr is working\n");
  9. fail = 0;
  10. return 1;
  11. }
  12. static int
  13. do_test (void)
  14. {
  15. _LIB_VERSION = _SVID_;
  16. acos (2.0);
  17. return fail;
  18. }
  19. #define TEST_FUNCTION do_test ()
  20. #include "../test-skeleton.c"