fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
231 B18 linesraw
1#include <assert.h>
2#include <setjmp.h>
3
4static jmp_buf ENV;
5
6extern void test_middle();
7
8void test_start(void(*f)()) {
9  if (setjmp(ENV) != 0)
10    return;
11  f();
12  assert(0);
13}
14
15void test_end() {
16  longjmp(ENV, 1);
17  assert(0);
18}