diff options
Diffstat (limited to 'third_party/rust/lucet-runtime-wasmsbx/tests/guests')
3 files changed, 16 insertions, 0 deletions
diff --git a/third_party/rust/lucet-runtime-wasmsbx/tests/guests/null.c b/third_party/rust/lucet-runtime-wasmsbx/tests/guests/null.c new file mode 100644 index 0000000000..dbec2355bc --- /dev/null +++ b/third_party/rust/lucet-runtime-wasmsbx/tests/guests/null.c @@ -0,0 +1,3 @@ +void f() { + return; +} diff --git a/third_party/rust/lucet-runtime-wasmsbx/tests/guests/yield_resume.c b/third_party/rust/lucet-runtime-wasmsbx/tests/guests/yield_resume.c new file mode 100644 index 0000000000..22b68f37eb --- /dev/null +++ b/third_party/rust/lucet-runtime-wasmsbx/tests/guests/yield_resume.c @@ -0,0 +1,8 @@ +#include <stdint.h> + +extern uint64_t lucet_runtime_test_hostcall_yield_resume(uint64_t n); + +uint64_t f() +{ + return lucet_runtime_test_hostcall_yield_resume(5); +} diff --git a/third_party/rust/lucet-runtime-wasmsbx/tests/guests/yield_resume_bindings.json b/third_party/rust/lucet-runtime-wasmsbx/tests/guests/yield_resume_bindings.json new file mode 100644 index 0000000000..fe9ffc6af7 --- /dev/null +++ b/third_party/rust/lucet-runtime-wasmsbx/tests/guests/yield_resume_bindings.json @@ -0,0 +1,5 @@ +{ + "env": { + "lucet_runtime_test_hostcall_yield_resume": "lucet_runtime_test_hostcall_yield_resume" + } +} |