diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libc/ieeefp/except/except.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/regress/lib/libc/ieeefp/except/except.c b/regress/lib/libc/ieeefp/except/except.c index 22bd6809a85..1d118777775 100644 --- a/regress/lib/libc/ieeefp/except/except.c +++ b/regress/lib/libc/ieeefp/except/except.c @@ -1,4 +1,4 @@ -/* $OpenBSD: except.c,v 1.9 2004/12/22 00:54:39 david Exp $ */ +/* $OpenBSD: except.c,v 1.10 2006/05/15 14:00:22 kettenis Exp $ */ #include <sys/types.h> #include <unistd.h> @@ -97,5 +97,11 @@ main(int argc, char *argv[]) errx(1, "unrecognized condition %s", argv[1]); } + /* + * attempt to trigger the exception on machines where + * floating-point exceptions are deferred. + */ + x = one * one; + errx(1, "signal wasn't caught"); } |