Debian Codegraph @

tests/cli/stack-switching/cont_new.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots % -f stack-switching
2
3 (module
4 (type $ft (func))
5 (type $ct (cont $ft))
6
7 (func $noop)
8 (elem declare func $noop)
9
10 (func $make-cont (result (ref $ct))
11 (cont.new $ct (ref.func $noop)))
12
13 (func $f (export "f") (result i32)
14 (call $make-cont)
15 (ref.is_null))
16 )
17
18 (assert_return (invoke "f") (i32.const 0))