remove tests
This commit is contained in:
parent
002d26b6b7
commit
2bdfef7041
3 changed files with 0 additions and 40 deletions
Binary file not shown.
|
|
@ -1,35 +0,0 @@
|
|||
;; tests/wasm/fib.wat
|
||||
(module
|
||||
(import "env" "log" (func $log (param i32 i32)))
|
||||
|
||||
(memory (export "memory") 1)
|
||||
(data (i32.const 0) "fib called\n")
|
||||
|
||||
(func $fib_impl (param $n i32) (result i32)
|
||||
local.get $n
|
||||
i32.const 2
|
||||
i32.lt_s
|
||||
if (result i32)
|
||||
local.get $n
|
||||
else
|
||||
local.get $n
|
||||
i32.const 1
|
||||
i32.sub
|
||||
call $fib_impl
|
||||
local.get $n
|
||||
i32.const 2
|
||||
i32.sub
|
||||
call $fib_impl
|
||||
i32.add
|
||||
end
|
||||
)
|
||||
|
||||
(func (export "fib") (param $n i32) (result i32)
|
||||
i32.const 0
|
||||
i32.const 11
|
||||
call $log
|
||||
|
||||
local.get $n
|
||||
call $fib_impl
|
||||
)
|
||||
)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
extern "env" fn log(ptr: [*]u8, len: i32) void;
|
||||
|
||||
export fn init() void {
|
||||
log(@ptrCast(@constCast("Hello world!\n")), 13);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue