Sign in
chromium
/
external
/
github.com
/
WebAssembly
/
wabt
/
9ee3f004cb11127ee33b9f5d9285fa17841c2db2
/
.
/
test
/
parse
/
expr
/
callref-imported-function.txt
blob: 255f7c19e9e459f732c5af0236d5b61408119696 [
file
] [
log
] [
blame
]
;;; 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))
)