fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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