waffle/wasm_tests/non-nullable-funcrefs.wat
2024-04-02 13:21:25 -07:00

9 lines
284 B
Plaintext

(module
(type $t (func (param i32) (result i32)))
(func $f1 (param i32) (result i32) local.get 0)
(func $f2 (param i32) (result i32) local.get 0)
(table $t 1 1 (ref null $t))
(elem $t (i32.const 0) (ref null $t)
(item (ref.func $f1))
(item (ref.func $f2))))