This also enables testing of the wasmtests tests. This also updates for wabt updating to the official "wat" filename extension, as opposed to "wast".
14 lines
295 B
Plaintext
14 lines
295 B
Plaintext
(module
|
|
(memory 1)
|
|
(func $main (local i32)
|
|
(set_local 0 (i32.sub (i32.const 4) (i32.const 4)))
|
|
(if
|
|
(get_local 0)
|
|
(then unreachable)
|
|
(else (drop (i32.mul (i32.const 6) (get_local 0))))
|
|
)
|
|
)
|
|
(start $main)
|
|
(data (i32.const 0) "abcdefgh")
|
|
)
|