diff options
Diffstat (limited to 'mit-pthreads/tests/test_setjmp.c')
-rw-r--r-- | mit-pthreads/tests/test_setjmp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mit-pthreads/tests/test_setjmp.c b/mit-pthreads/tests/test_setjmp.c new file mode 100644 index 00000000000..ea24ecd63bc --- /dev/null +++ b/mit-pthreads/tests/test_setjmp.c @@ -0,0 +1,13 @@ +#include <setjmp.h> + +main() +{ +jmp_buf foo; + +if (setjmp(foo)) { + exit(0); +} +printf("Hi mom\n"); +longjmp(foo, 1); +printf("Should never reach here\n"); +} |