Add test for nullable funcrefs.
This commit is contained in:
parent
4eaf0ced01
commit
7b297b5e47
8
wasm_tests/non-nullable-funcrefs.wat
Normal file
8
wasm_tests/non-nullable-funcrefs.wat
Normal 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))))
|
Loading…
Reference in a new issue