waffle/wasm_tests/non-nullable-funcrefs.wat

9 lines
284 B
Plaintext
Raw Normal View History

2024-04-02 15:21:07 -05:00
(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))))