mariadb/mit-pthreads/tests/test_setjmp.c
bk@work.mysql.com f4c589ff6c Import changeset
2000-07-31 21:29:14 +02:00

13 lines
151 B
C

#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");
}