15 lines
228 B
C
15 lines
228 B
C
#include <stdio.h>
|
|
#include <setjmp.h>
|
|
|
|
#include "test_helpers.h"
|
|
|
|
int main(void) {
|
|
jmp_buf buf;
|
|
if (setjmp(buf)) {
|
|
puts("hi from jump");
|
|
} else {
|
|
puts("jumping...");
|
|
longjmp(buf, 0);
|
|
}
|
|
}
|