1 #include <stdio.h> 2 #include <setjmp.h> 3 4 #include "test_helpers.h" 5 6 int main(void) { 7 jmp_buf buf; 8 if (setjmp(buf)) { 9 puts("hi from jump"); 10 } else { 11 puts("jumping..."); 12 longjmp(buf, 0); 13 } 14 } 15