wasm-tools 1.248.0

CLI tools for interoperating with WebAssembly files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;; RUN: wast --assert default --snapshot tests/snapshots % -f stack-switching

(module
  (type $ft (func))
  (type $ct (cont $ft))

  (func $noop)
  (elem declare func $noop)

  (func $make-cont (result (ref $ct))
     (cont.new $ct (ref.func $noop)))

  (func $f (export "f") (result i32)
     (call $make-cont)
     (ref.is_null))
)

(assert_return (invoke "f") (i32.const 0))