From 57aed88f9a8139d1f84651e3b83005de7373e86a Mon Sep 17 00:00:00 2001 From: Pavel Durov Date: Mon, 29 Jan 2024 18:31:18 +0000 Subject: [PATCH] Remove tests/c/simple_swt.c --- tests/c/simple_swt.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 tests/c/simple_swt.c diff --git a/tests/c/simple_swt.c b/tests/c/simple_swt.c deleted file mode 100644 index 83703b539..000000000 --- a/tests/c/simple_swt.c +++ /dev/null @@ -1,39 +0,0 @@ -// Run-time: -// env-var: YKD_PRINT_JITSTATE=1 -// env-var: YKD_SERIALISE_COMPILATION=1 -// stderr: ... - -// Run: YKB_TRACER=sw cargo test ::simple_swt.c -- --nocapture -// Check that basic trace compilation works for Software Tracer. - -#include -#include -#include -#include -#include -#include - -int add1(int i){ - return i + 1; -} - -int inc(int i){ - return add1(i); -} - -int main(int argc, char **argv) { - YkMT *mt = yk_mt_new(NULL); - yk_mt_hot_threshold_set(mt, 0); - YkLocation loc = yk_location_new(); - - int i = 0; - NOOPT_VAL(loc); - NOOPT_VAL(i); - while (i < 10) { - yk_mt_control_point(mt, &loc); - i = inc(i); - } - yk_location_drop(loc); - yk_mt_drop(mt); - return (EXIT_SUCCESS); -}