diff options
author | 2013-12-29 05:46:43 +0000 | |
---|---|---|
committer | 2013-12-29 05:46:43 +0000 | |
commit | a94e28f8149bea6eda0ae75e24e24920be746ac1 (patch) | |
tree | eee6add4c1255c801364d42c3e4cf03ee6e9b8e9 /regress/lib/libc/setjmp-fpu/setjmp.c | |
parent | don't forget to load Ed25519 certs too (diff) | |
download | wireguard-openbsd-a94e28f8149bea6eda0ae75e24e24920be746ac1.tar.xz wireguard-openbsd-a94e28f8149bea6eda0ae75e24e24920be746ac1.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 'regress/lib/libc/setjmp-fpu/setjmp.c')
-rw-r--r-- | regress/lib/libc/setjmp-fpu/setjmp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/regress/lib/libc/setjmp-fpu/setjmp.c b/regress/lib/libc/setjmp-fpu/setjmp.c new file mode 100644 index 00000000000..04de1df302a --- /dev/null +++ b/regress/lib/libc/setjmp-fpu/setjmp.c @@ -0,0 +1,5 @@ +#define SETJMP(env, savemask) setjmp(env) +#define LONGJMP(env, val) longjmp(env, val) +#define TEST_SETJMP test_setjmp + +#include "setjmp-fpu.c" |