blob: 8f41f1c2c84ca3bfe4ef3514da912f1c0e7729e3 [file] [edit]
;;; TOOL: wat2wasm
;;; ERROR: 1
(module
(table 1 funcref)
(func $f)
(elem (i32.const 0) $f 1))
(;; STDERR ;;;
out/test/parse/module/bad-table-invalid-function.txt:6:26: error: function variable out of range: 1 (max 1)
(elem (i32.const 0) $f 1))
^
out/test/parse/module/bad-table-invalid-function.txt:0:0: error: type mismatch in initializer expression, expected [funcref] but got []
;;; STDERR ;;)