;;; TOOL: wat2wasm
;;; ARGS: --enable-tail-call
;;; ERROR: 1
(module
  (type $v_v (func))

  (func
    i32.const 0
    return_call_indirect)
)
(;; STDERR ;;;
out/test/typecheck/bad-returncallindirect-no-table.txt:9:5: error: table variable out of range: 0 (max 0)
    return_call_indirect)
    ^^^^^^^^^^^^^^^^^^^^
out/test/typecheck/bad-returncallindirect-no-table.txt:9:5: error: type mismatch: return_call_indirect must reference table of funcref type
    return_call_indirect)
    ^^^^^^^^^^^^^^^^^^^^
;;; STDERR ;;)
