Test handling of matherr.
authordrepper <drepper>
Tue, 24 Jun 1997 01:11:41 +0000 (01:11 +0000)
committerdrepper <drepper>
Tue, 24 Jun 1997 01:11:41 +0000 (01:11 +0000)
math/test-matherr.c [new file with mode: 0644]

diff --git a/math/test-matherr.c b/math/test-matherr.c
new file mode 100644 (file)
index 0000000..91657a8
--- /dev/null
@@ -0,0 +1,23 @@
+#undef _SVID_SOURCE
+#define _SVID_SOURCE
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+static int fail = 1;
+
+int
+matherr (struct exception *s)
+{
+  printf ("matherr is working\n");
+  fail = 0;
+  return 1;
+}
+
+int
+main (void)
+{
+  _LIB_VERSION = _SVID_;
+  acos (2.0);
+  return fail;
+}