(module
 (type $none_=>_i32 (func (result i32)))
 (type $none_=>_funcref (func (result funcref)))
 (func $0 (result i32)
  (i32.const 0)
 )
 (func $test (result funcref)
  (ref.func $0)
 )
)
(module
 (type $none_=>_none (func))
 (memory $foo 16 16)
 (global $bar i32 (i32.const 0))
 (export "memory" (memory $foo))
 (export "global" (global $bar))
 (func $bar
  (nop)
 )
)
