;;; TOOL: wat2wasm

(module
  (table $foo 1 externref)
  (func (result externref)
    i32.const 0
    table.get $foo
  )
  (func (param externref)
    i32.const 0
    local.get 0
    table.set $foo
  )
  (func (result i32)
    ref.null extern
    i32.const 0
    table.grow $foo
  )
)

