(module (type $ft (;0;) (func)) (type $ct (;1;) (cont $ft)) (type (;2;) (func (result i32))) (global $i (;0;) (mut i32) i32.const 0) (export "f" (func $f)) (elem (;0;) declare func $g) (func $g (;0;) (type $ft) i32.const 42 global.set $i ) (func $f (;1;) (type 2) (result i32) i32.const 99 global.set $i ref.func $g cont.new $ct resume $ct global.get $i ) )