diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-26 22:43:30 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-12-29 23:36:21 +0100 |
| commit | 52c18e60929b64285d4bb333f87482d954c9b2e0 (patch) | |
| tree | 836ab3a01d160f45cda4f5a28522fc0bf471011c /test/main.c | |
| download | nanowasm-first-step.tar.gz | |
First commitfirst-step
Diffstat (limited to 'test/main.c')
| -rw-r--r-- | test/main.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c new file mode 100644 index 0000000..d88552e --- /dev/null +++ b/test/main.c @@ -0,0 +1,18 @@ +#include <wasmfs.h> +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> + +int main(int argc, char *argv[]) +{ + struct wasmfs *const w = wasmfs_load("example.wasm"); + + if (!w) + { + fprintf(stderr, "%s: wasmfs_load failed\n", __func__); + return EXIT_FAILURE; + } + + wasmfs_unload(w); + return EXIT_SUCCESS; +} |
