blob: 255f7c19e9e459f732c5af0236d5b61408119696 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
;;; TOOL: wat2wasm
;;; ARGS: --enable-function-references
(module
(import "" "foo" (func $foo (param i32) (result i32)))
(func (export "main") (result i32)
(call_ref (i32.const 10)
(ref.func $foo)
)
)
(elem declare funcref (ref.func $foo))
)
|