diff options
author | martynas <> | 2013-12-29 05:46:43 +0000 |
---|---|---|
committer | martynas <> | 2013-12-29 05:46:43 +0000 |
commit | 382438d17af9b7ccce3e4d3890cc9b1785f14d71 (patch) | |
tree | 6964000d66f90b242941948bbe0914c21628f79c /src/regress/lib/libc/setjmp-fpu/main.c | |
parent | c057fa8b78920eb9c3f036141d89633cdb5a2626 (diff) | |
download | openbsd-382438d17af9b7ccce3e4d3890cc9b1785f14d71.tar.gz openbsd-382438d17af9b7ccce3e4d3890cc9b1785f14d71.tar.bz2 openbsd-382438d17af9b7ccce3e4d3890cc9b1785f14d71.zip |
- Verify that the FPU exception flags weren't clobbered as required by C99.
- Additionally, test _setjmp and sigsetjmp as implementations are different.
Diffstat (limited to 'src/regress/lib/libc/setjmp-fpu/main.c')
-rw-r--r-- | src/regress/lib/libc/setjmp-fpu/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/regress/lib/libc/setjmp-fpu/main.c b/src/regress/lib/libc/setjmp-fpu/main.c new file mode 100644 index 0000000000..43f9b6216c --- /dev/null +++ b/src/regress/lib/libc/setjmp-fpu/main.c | |||
@@ -0,0 +1,11 @@ | |||
1 | int test__setjmp(void); | ||
2 | int test_setjmp(void); | ||
3 | int test_sigsetjmp(void); | ||
4 | |||
5 | int | ||
6 | main(int argc, char *argv[]) | ||
7 | { | ||
8 | return (test__setjmp() | ||
9 | | test_setjmp() | ||
10 | | test_sigsetjmp()); | ||
11 | } | ||