Add test for nullable funcrefs.

This commit is contained in:
Chris Fallin 2024-04-02 13:21:07 -07:00
parent 4eaf0ced01
commit 7b297b5e47

View file

@ -0,0 +1,8 @@
(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))))