Debian Codegraph @

tests/snapshots/cli/stack-switching/cont_resume.wast/0.print

raw
1 (module
2 (type $ft (;0;) (func))
3 (type $ct (;1;) (cont $ft))
4 (type (;2;) (func (result i32)))
5 (global $i (;0;) (mut i32) i32.const 0)
6 (export "f" (func $f))
7 (elem (;0;) declare func $g)
8 (func $g (;0;) (type $ft)
9 i32.const 42
10 global.set $i
11 )
12 (func $f (;1;) (type 2) (result i32)
13 i32.const 99
14 global.set $i
15 ref.func $g
16 cont.new $ct
17 resume $ct
18 global.get $i
19 )
20 )