From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/tests/ansi/longjmp.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 lib/mlibc/tests/ansi/longjmp.c (limited to 'lib/mlibc/tests/ansi/longjmp.c') diff --git a/lib/mlibc/tests/ansi/longjmp.c b/lib/mlibc/tests/ansi/longjmp.c deleted file mode 100644 index 9f9c1ed..0000000 --- a/lib/mlibc/tests/ansi/longjmp.c +++ /dev/null @@ -1,29 +0,0 @@ -#include -#include -#include -#include - -jmp_buf buf; - -noreturn void do_jump(int arg) { - longjmp(buf, 2 * arg); -} - -int main(void) { - volatile int times_called = 0; - - if (setjmp(buf) != 8) { - do_jump(++times_called); - } - - assert(times_called == 4); - - times_called = 0; - int ret = setjmp(buf); - assert(ret == times_called); - - if (!ret) { - times_called = 1; - longjmp(buf, 0); - } -} -- cgit v1.2.3