fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
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}